memory
|
A RawAllocator that uses the additional joint memory for its allocation.
It is somewhat limited and allows only allocation once. All joint allocators for an object share the joint memory and must not be used in multiple threads. The memory it returns is owned by a joint_ptr and will be destroyed through it.
Member Functions | |
template<typename T > | |
joint_allocator (joint_type< T > &j) noexcept | |
joint_allocator (const joint_allocator &other) noexcept=default | |
joint_allocator & | operator= (const joint_allocator &other) noexcept=default |
void * | allocate_node (std::size_t size, std::size_t alignment) |
void | deallocate_node (void *ptr, std::size_t size, std::size_t) noexcept |
|
noexcept |
void * allocate_node | ( | std::size_t | size, |
std::size_t | alignment | ||
) |
|
noexcept |