tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
allocator_traits< Alloc > Struct Template Reference

#include <allocator_traits.hpp>

Public Types

using allocator_type = Alloc
 
using const_pointer = typename detail::allocator_traits_const_pointer<Alloc>::type
 
using const_void_pointer = typename detail::allocator_traits_const_void_pointer<Alloc>::type
 
using difference_type = typename detail::allocator_traits_difference_type<Alloc>::type
 
using pointer = typename detail::allocator_traits_pointer<Alloc>::type
 
using size_type = typename detail::allocator_traits_size_type<Alloc>::type
 
using value_type = typename Alloc::value_type
 
using void_pointer = typename detail::allocator_traits_void_pointer<Alloc>::type
 

Static Public Member Functions

static constexpr auto allocate (Alloc &a, size_type n)
 
static constexpr void deallocate (Alloc &a, pointer p, size_type n)
 

Member Typedef Documentation

◆ allocator_type

template<typename Alloc>
using allocator_type = Alloc

◆ const_pointer

template<typename Alloc>
using const_pointer = typename detail::allocator_traits_const_pointer<Alloc>::type

◆ const_void_pointer

template<typename Alloc>
using const_void_pointer = typename detail::allocator_traits_const_void_pointer<Alloc>::type

◆ difference_type

template<typename Alloc>
using difference_type = typename detail::allocator_traits_difference_type<Alloc>::type

◆ pointer

template<typename Alloc>
using pointer = typename detail::allocator_traits_pointer<Alloc>::type

◆ size_type

template<typename Alloc>
using size_type = typename detail::allocator_traits_size_type<Alloc>::type

◆ value_type

template<typename Alloc>
using value_type = typename Alloc::value_type

◆ void_pointer

template<typename Alloc>
using void_pointer = typename detail::allocator_traits_void_pointer<Alloc>::type

Member Function Documentation

◆ allocate()

template<typename Alloc>
constexpr auto allocate ( Alloc & a,
size_type n )
inlinestaticnodiscardconstexpr

◆ deallocate()

template<typename Alloc>
constexpr void deallocate ( Alloc & a,
pointer p,
size_type n )
inlinestaticconstexpr

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