|
libhatchet
|
#include <hxallocator.hpp>
Public Types | |
| using | value_t = T |
Public Member Functions | |
| hxallocator (void) | |
| hxsize_t | capacity (void) const |
| const T * | data (void) const |
| T * | data (void) |
| void | reserve_storage (hxsize_t size_, hxsystem_allocator_t allocator_=hxsystem_allocator_current, hxalignment_t alignment_=hxalignment) |
hxallocator<1+> - Provides static allocation when capacity is greater than zero.
| using hxallocator< T, fixed_capacity_ >::value_t = T |
value_t - Publishes the value type.
|
inline |
Initializes memory to 0xab when HX_HARDENING_MODE == HX_HARDENING_MODE_DEBUG.
|
inline |
Returns the number of elements of T allocated.
|
inline |
Returns a pointer to a potentially uninitialized array of T.
|
inline |
Returns a pointer to a const and potentially uninitialized array of T.
|
inline |
Ensures capacity.
Will not reallocate. Provided for interface compatibility with the dynamic allocator.