template<
typename T = void>
struct Foundation::Core::StlAllocator< T >
std::allocator adaptor for Foundation::Core::Allocator
Construction without a Foundation::Core::Allocator pointer is disallowed, and will result in a compile-time error. For STL types that require default-constructible allocators, use StlAllocator<void> and pass the resource explicitly
Rebind construction is supported.
Using this with e.g. Foundation::Core::Vector can be done as follows:
General Purpose Allocator (GPA) interface.
Definition Allocator.hpp:24
std::vector< T, StlAllocator< T > > Vector
std::vector with explicit Foundation::Core::StlAllocator constructor
Definition Container.hpp:130
T * Construct(Allocator *resource, Args &&...args)
Convenience placement new with object of type T using a Foundation::Core::Allocator.
Definition Allocator.hpp:149