diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-07-14 17:17:37 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-07-14 17:19:17 -0700 |
| commit | eac628024177434563d348272165d4e3a0a281af (patch) | |
| tree | a11325a92c9ae3445d7a062b989704ec2a5dc2cb /src/compiler.cpp | |
| parent | a7c3cec65f1639195e787b98900c3f126953f880 (diff) | |
| download | zig-eac628024177434563d348272165d4e3a0a281af.tar.gz zig-eac628024177434563d348272165d4e3a0a281af.zip | |
add std.meta.TrailerFlags API
This is useful for saving memory when allocating an object that has many
optional components. The optional objects are allocated sequentially in
memory, and a single integer is used to represent each optional object
and whether it is present based on each corresponding bit.
Diffstat (limited to 'src/compiler.cpp')
0 files changed, 0 insertions, 0 deletions
