libycxx

class template

std::allocator_traits

Header
<memory>
Scope
std

Synopsis

template<class Alloc>
struct allocator_traits;

Member types

NameDeclaration
allocator_typetype alias · member type= Alloc
const_pointertype alias · member type= /* implementation-defined */::type
const_void_pointertype alias · member type= /* implementation-defined */::type
difference_typetype alias · member type= /* implementation-defined */::type
is_always_equaltype alias · member type= /* implementation-defined */::type
pointertype alias · member type= /* implementation-defined */::type
propagate_on_container_copy_assignmenttype alias · member type= /* implementation-defined */::type
propagate_on_container_move_assignmenttype alias · member type= /* implementation-defined */::type
propagate_on_container_swaptype alias · member type= /* implementation-defined */::type
rebind_allocalias template · member type= /* implementation-defined */::type
rebind_traitsalias template · member type= allocator_traits<rebind_alloc<T>>
size_typetype alias · member type= /* implementation-defined */::type
value_typetype alias · member type= Alloc::value_type
void_pointertype alias · member type= /* implementation-defined */::type

Static member functions

NameDeclaration
allocatestatic member function · 2 overloadspointer allocate(Alloc& a, size_type n) +1 more
allocate_at_leaststatic member functionallocation_result<pointer, size_type> allocate_at_least(Alloc& a, size_type n)
constructstatic member function templatevoid construct(Alloc& a, T* p, Args&&... args)
deallocatestatic member functionvoid deallocate(Alloc& a, pointer p, size_type n)
destroystatic member function templatevoid destroy(Alloc& a, T* p)
max_sizestatic member functionsize_type max_size(const Alloc& a)
select_on_container_copy_constructionstatic member functionAlloc select_on_container_copy_construction(const Alloc& rhs)