mn::memory::allocator_traits< TAllocator > Class Template Reference

#include <mn_allocator_typetraits.hpp>

Public Types

using allocator_type = typename internal::allocator_traits< TAllocator >::allocator_type
 
using pointer = typename internal::allocator_traits< TAllocator >::pointer
 
using size_type = typename internal::allocator_traits< TAllocator >::size_type
 

Static Public Member Functions

static pointer allocate_node (allocator_type &state, size_type size, size_type alignment)
 
static pointer allocate_array (allocator_type &state, size_type count, size_type size, size_type alignment)
 
static void deallocate_node (allocator_type &state, pointer node, size_type size, size_type alignment) noexcept
 
static void deallocate_array (allocator_type &state, pointer node, size_type count, size_type size, size_type alignment) noexcept
 
static size_type max_node_size (const allocator_type &state)
 
static size_type max_array_size (const allocator_type &state)
 
static size_type max_alignment (const allocator_type &state)
 

Member Typedef Documentation

◆ allocator_type

template<class TAllocator >
using mn::memory::allocator_traits< TAllocator >::allocator_type = typename internal::allocator_traits<TAllocator>::allocator_type

◆ pointer

template<class TAllocator >
using mn::memory::allocator_traits< TAllocator >::pointer = typename internal::allocator_traits<TAllocator>::pointer

◆ size_type

template<class TAllocator >
using mn::memory::allocator_traits< TAllocator >::size_type = typename internal::allocator_traits<TAllocator>::size_type

Member Function Documentation

◆ allocate_array()

template<class TAllocator >
static pointer mn::memory::allocator_traits< TAllocator >::allocate_array ( allocator_type state,
size_type  count,
size_type  size,
size_type  alignment 
)
inlinestatic

◆ allocate_node()

template<class TAllocator >
static pointer mn::memory::allocator_traits< TAllocator >::allocate_node ( allocator_type state,
size_type  size,
size_type  alignment 
)
inlinestatic

◆ deallocate_array()

template<class TAllocator >
static void mn::memory::allocator_traits< TAllocator >::deallocate_array ( allocator_type state,
pointer  node,
size_type  count,
size_type  size,
size_type  alignment 
)
inlinestaticnoexcept

◆ deallocate_node()

template<class TAllocator >
static void mn::memory::allocator_traits< TAllocator >::deallocate_node ( allocator_type state,
pointer  node,
size_type  size,
size_type  alignment 
)
inlinestaticnoexcept

◆ max_alignment()

template<class TAllocator >
static size_type mn::memory::allocator_traits< TAllocator >::max_alignment ( const allocator_type state)
inlinestatic

◆ max_array_size()

template<class TAllocator >
static size_type mn::memory::allocator_traits< TAllocator >::max_array_size ( const allocator_type state)
inlinestatic

◆ max_node_size()

template<class TAllocator >
static size_type mn::memory::allocator_traits< TAllocator >::max_node_size ( const allocator_type state)
inlinestatic

The documentation for this class was generated from the following file: