memory
Typedefs | Static Functions
composable_allocator_traits< Allocator > Class Template Reference

Detailed Description

template<class Allocator>
class foonathan::memory::composable_allocator_traits< Allocator >

The default specialization of the composable_allocator_traits for a ComposableAllocator.

See the last link for the requirements on types that do not specialize this class and the interface documentation. Any specialization must provide the same interface.

Typedefs

using allocator_type = typename allocator_traits< Allocator >::allocator_type
 

Static Functions

static void * try_allocate_node (allocator_type &state, std::size_t size, std::size_t alignment) noexcept
 
static void * try_allocate_array (allocator_type &state, std::size_t count, std::size_t size, std::size_t alignment) noexcept
 
static bool try_deallocate_node (allocator_type &state, void *node, std::size_t size, std::size_t alignment) noexcept
 
static bool try_deallocate_array (allocator_type &state, void *array, std::size_t count, std::size_t size, std::size_t alignment) noexcept