libstdc++
std::allocator< void > Class Reference

#include <memory>

Inheritance diagram for std::allocator< void >:
[legend]

Public Types

typedef ptrdiff_t difference_type
typedef ptrdiff_t difference_type
using is_always_equal
using is_always_equal
using propagate_on_container_move_assignment
using propagate_on_container_move_assignment
typedef size_t size_type
typedef size_t size_type
typedef void value_type
typedef void value_type

Public Member Functions

constexpr allocator (const allocator &__a) noexcept
constexpr allocator (const allocator< _Tp1 > &) noexcept
template<typename _Up>
constexpr allocator (const allocator< _Up > &) noexcept
constexpr void * allocate (size_t __n)
void * allocate (size_type __n, const void *=static_cast< const void * >(0))
void * allocate (size_type __n, const void *=static_cast< const void * >(0))
void deallocate (_Tp *__p, size_type __n)
constexpr void deallocate (void *__p, size_t __n)
allocator & operator= (const allocator &)=default

Friends

constexpr bool operator== (const allocator &, const allocator &) noexcept

(Note that these are not member symbols.)

constexpr bool operator== (const allocator< _T1 > &, const allocator< _T2 > &) noexcept
constexpr bool operator== (const allocator< _T1 > &, const allocator< _T2 > &) noexcept

Detailed Description

std::allocator<void> specialization.

Definition at line 75 of file allocator.h.

Member Typedef Documentation

◆ difference_type

typedef ptrdiff_t std::allocator< void >::difference_type

Definition at line 134 of file allocator.h.

◆ is_always_equal

using std::allocator< void >::is_always_equal

Definition at line 153 of file allocator.h.

◆ propagate_on_container_move_assignment

using std::allocator< void >::propagate_on_container_move_assignment

Definition at line 151 of file allocator.h.

◆ size_type

typedef size_t std::allocator< void >::size_type

Definition at line 133 of file allocator.h.

◆ value_type

typedef void std::allocator< void >::value_type

Definition at line 132 of file allocator.h.

Constructor & Destructor Documentation

◆ allocator() [1/3]

std::allocator< void >::allocator ( )
inlineconstexprnoexcept

Definition at line 159 of file allocator.h.

◆ allocator() [2/3]

std::allocator< void >::allocator ( const allocator< void > & __a)
inlineconstexprnoexcept

Definition at line 162 of file allocator.h.

◆ allocator() [3/3]

std::allocator< void >::allocator ( const allocator< _Tp1 > & )
inlineconstexprnoexcept

Definition at line 172 of file allocator.h.

◆ ~allocator()

std::allocator< void >::~allocator ( )
inlineconstexprnoexcept

Definition at line 177 of file allocator.h.

Member Function Documentation

◆ allocate() [1/3]

void * std::allocator< void >::allocate ( size_t __n)
inlinenodiscardconstexpr

Definition at line 182 of file allocator.h.

◆ allocate() [2/3]

void * std::__new_allocator< void >::allocate ( size_type __n,
const void * = static_cast<const void*>(0) )
inlinenodiscard

Definition at line 123 of file bits/new_allocator.h.

◆ allocate() [3/3]

void * std::__new_allocator< void >::allocate ( size_type __n,
const void * = static_cast<const void*>(0) )
inlinenodiscard

Definition at line 123 of file bits/new_allocator.h.

◆ deallocate() [1/2]

template<typename _Tp>
void std::__new_allocator< _Tp >::deallocate ( _Tp * __p,
size_type __n )
inlineinherited

Definition at line 153 of file bits/new_allocator.h.

◆ deallocate() [2/2]

void std::allocator< void >::deallocate ( void * __p,
size_t __n )
inlineconstexpr

Definition at line 196 of file allocator.h.

◆ operator== [1/3]

bool operator== ( const allocator< void > & ,
const allocator< void > &  )
friend

Definition at line 208 of file allocator.h.

◆ operator==() [2/3]

bool operator== ( const allocator< _T1 > & ,
const allocator< _T2 > &  )
related

Equality comparison for std::allocator objects

Returns
true, for all std::allocator objects.

Definition at line 229 of file allocator.h.

◆ operator==() [3/3]

bool operator== ( const allocator< _T1 > & ,
const allocator< _T2 > &  )
related

Equality comparison for std::allocator objects

Returns
true, for all std::allocator objects.

Definition at line 229 of file allocator.h.


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