mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
d44a7dc603
Manually manage the lifetime of `value_` by using an anonymous `union`. This fixes a bunch of double-frees and double-constructs. Additionally move the `present_` flag last. When `T` has padding `present_` will be placed there saving `alignof(T)` bytes from `sizeof(optional<T>)`. |
||
---|---|---|
.. | ||
.clang-format | ||
BUILD.mk | ||
optional_test.cc | ||
string_test.cc | ||
string_view_test.cc | ||
vector_test.cc |