libycxx

class template

std::allocator

Header
<memory> also in <iosfwd>
Scope
std
cppreference
std::allocator

Synopsis

template<class T>
class allocator;

Member types

NameDeclaration
difference_typetype alias · member type= ptrdiff_t
propagate_on_container_move_assignmenttype alias · member type= true_type
size_typetype alias · member type= size_t
value_typetype alias · member type= T

Member functions

NameDeclaration
allocatorconstructor · 3 overloadsallocator() +2 more
~allocatordestructor~allocator()
operator=operatorallocator& operator=(const allocator& other)
allocatemember functionT* allocate(size_t n)
allocate_at_leastmember functionallocation_result<T*> allocate_at_least(size_t n)
deallocatemember functionvoid deallocate(T* p, size_t n)