template<class RawAllocator>
class foonathan::memory::aligned_allocator< RawAllocator >
A RawAllocator adapter that ensures a minimum alignment.
It adjusts the alignment value so that it is always larger than the minimum and forwards to the specified allocator.
|
| aligned_allocator (std::size_t min_alignment, allocator_type &&alloc={}) |
|
std::size_t | min_alignment () const noexcept |
|
void | set_min_alignment (std::size_t min_alignment) |
|
|
| aligned_allocator (aligned_allocator &&other) noexcept |
|
aligned_allocator & | operator= (aligned_allocator &&other) 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 |
|
|
template<typename Dummy = std::true_type, typename std::enable_if<(Dummy::value &&(composable::value)), int >::type = 0> |
void * | try_allocate_node (std::size_t size, std::size_t alignment) noexcept |
|
template<typename Dummy = std::true_type, typename std::enable_if<(Dummy::value &&(composable::value)), int >::type = 0> |
void * | try_allocate_array (std::size_t count, std::size_t size, std::size_t alignment) noexcept |
|
template<typename Dummy = std::true_type, typename std::enable_if<(Dummy::value &&(composable::value)), int >::type = 0> |
bool | try_deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
|
template<typename Dummy = std::true_type, typename std::enable_if<(Dummy::value &&(composable::value)), int >::type = 0> |
bool | try_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 |
|
|
allocator_type & | get_allocator () noexcept |
|
const allocator_type & | get_allocator () const noexcept |
|