template<
class RawAllocator>
class foonathan::memory::allocator_reference< RawAllocator >
An alias template for allocator_storage using the reference_storage policy.
It will store a reference to the given allocator type. The tag type any_allocator enables type-erasure. Wrap the allocator in a thread_safe_allocator if you want thread safety.
|
bool | is_composable () const noexcept |
|
|
void * | allocate_node (std::size_t size, std::size_t alignment) |
|
void * | allocate_array (std::size_t count, std::size_t size, std::size_t alignment) |
|
void | deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
|
void | deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
|
std::size_t | max_node_size () const |
|
std::size_t | max_array_size () const |
|
std::size_t | max_alignment () const |
|
|
void * | try_allocate_node (std::size_t size, std::size_t alignment) noexcept |
|
void * | try_allocate_array (std::size_t count, std::size_t size, std::size_t alignment) noexcept |
|
bool | try_deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
|
bool | try_deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
|
|
auto | get_allocator () noexcept -> decltype(std::declval< storage_policy >().get_allocator()) |
|
auto | get_allocator () const noexcept -> decltype(std::declval< const storage_policy >().get_allocator()) |
|
|
auto | lock () noexcept -> implementation_defined |
|
auto | lock () const noexcept -> implementation_defined |
|