diff options
| author | Motiejus Jakštys <motiejus@jakstys.lt> | 2023-03-17 18:50:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-17 17:50:25 +0100 |
| commit | e0dd20b02ea026e125b36b3674f20aa20ff043e3 (patch) | |
| tree | e1536da7724b4822695028de04d02f9c296fb21b /lib/std/Build/OptionsStep.zig | |
| parent | cfcd6698cd9385938df27a2052c2309229171e4f (diff) | |
| download | zig-e0dd20b02ea026e125b36b3674f20aa20ff043e3.tar.gz zig-e0dd20b02ea026e125b36b3674f20aa20ff043e3.zip | |
add BoundedArrayAligned (#14580)
This is useful for creating byte buffers of actually-different-things.
Copied the argument order from `Allocator.alignedAlloc`
I noted that `ArrayListAligned` is going out of it's way to not set the
alignment at comptime when it is not specified. However, I was not able
to do that the same way here, and good people on IRC, @ifreund in
particular (thanks!) assured me that
[N]T align(@alignOf(T))
is equivalent to
[N]T
Diffstat (limited to 'lib/std/Build/OptionsStep.zig')
0 files changed, 0 insertions, 0 deletions
