The standard interface for custom memory allocators in C++ is Allocator concept.
The default implementation, std::allocator
, uses new
and delete
, but you can provide your own later and if you conform to the interface, you can use it with standard collections.