cosmopolitan/test/ctl
Jōshin 118db71121
Provide a minimal new.h for CTL (#1205)
This replaces the STL <new> header. Mainly, it defines a global operator
new and operator delete, as well as the placement versions of these. The
placement versions are required to not get compile errors when trying to
write a placement new statement.

Each of these operators is defined with many, many different variants. A
glance at new.cc is recommended followed by a chaser of the Alexandrescu
talk "std::allocator is to Allocation as std::vector is to Vexation". We
must provide a global-namespace source-level definition of each operator
and it is illegal for any of them to be marked inline, so here we are.

The upshot is that we no longer need to include <new>, and our optional/
vector headers are self-contained.
2024-06-08 15:05:38 -07: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 Provide a minimal new.h for CTL (#1205) 2024-06-08 15:05:38 -07: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 Provide a minimal new.h for CTL (#1205) 2024-06-08 15:05:38 -07:00