|
libhatchet
|
#include <hxallocator.hpp>
Public Types | |
| using | value_t = T |
Public Member Functions | |
| hxallocator (void) | |
| ~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<0> - Capacity is set by first call to reserve_storage and may not be extended.
May be moved using hxswap_memcpy.
| using hxallocator< T, hxallocator_dynamic_capacity >::value_t = T |
value_t - Publishes the value type.
|
inline |
Does not allocate until reserve_storage is called.
|
inline |
Calls hxfree with any allocated memory.
|
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 |
Capacity is set by first call to reserve_storage and may not be modified.