# add std.meta.TrailerFlags API · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/eac628024177434563d348272165d4e3a0a281af)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: eac628024177434563d348272165d4e3a0a281af

Requested commit: eac628024177434563d348272165d4e3a0a281af

Commit: eac628024177434563d348272165d4e3a0a281af

Tree: a11325a92c9ae3445d7a062b989704ec2a5dc2cb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [a7c3cec65f1639195e787b98900c3f126953f880](https://git.cafe/gitcafe/zig/commit/a7c3cec65f1639195e787b98900c3f126953f880?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/eac628024177434563d348272165d4e3a0a281af?format=markdown)
