cosmopolitan/test/ctl
Alkis Evlogimenos d44a7dc603
Fix bugs in in ctl::optional (#1203)
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>)`.
2024-06-07 20:47:24 -04:00
..
.clang-format Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00
BUILD.mk Make malloc() go 200x faster 2024-06-05 02:02:14 -07:00
optional_test.cc Fix bugs in in ctl::optional (#1203) 2024-06-07 20:47:24 -04:00
string_test.cc Fix some memory issues with ctl::string (#1201) 2024-06-07 01:15:37 -04:00
string_view_test.cc Add terminating :vi on some modelines 2024-06-05 20:36:55 -07:00
vector_test.cc Add terminating :vi on some modelines 2024-06-05 20:36:55 -07:00