std::allocator< _Tp >(3)

NAME
std::allocator< _Tp > - The standard allocator, as per C++03 [20.4.1].

SYNOPSIS

#include <allocator.h>

Inherits __allocator_base< _Tp >.

  Public Types
typedef const _Tp * const_pointer
typedef const _Tp & const_reference
typedef ptrdiff_t difference_type
typedef true_type is_always_equal
typedef _Tp * pointer
typedef true_type propagate_on_container_move_assignment
typedef _Tp & reference
typedef size_t size_type
typedef _Tp value_type

  Public Member Functions
constexpr allocator (const allocator &__a) noexcept
template<typename _Tp1 > constexpr allocator (const allocator< _Tp1 > &) noexcept
allocator & operator= (const allocator &)=default

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

Detailed Description

  template<typename _Tp>
class std::allocator< _Tp >"The standard allocator, as per C++03 [20.4.1]. See https://gcc.gnu.org/onlinedocs/libstdc++/manual/memory.html#std.util.memory.allocator for further details.

Template Parameters
    _Tp Type of allocated object.

Definition at line 138 of file allocator.h.

Member Typedef Documentation

  template<typename _Tp > typedef const _Tp* std::allocator< _Tp >::const_pointer

Definition at line 148 of file allocator.h.

  template<typename _Tp > typedef const _Tp& std::allocator< _Tp >::const_reference

Definition at line 150 of file allocator.h.

  template<typename _Tp > typedef ptrdiff_t std::allocator< _Tp >::difference_type

Definition at line 143 of file allocator.h.

  template<typename _Tp > typedef true_type std::allocator< _Tp >::is_always_equal

Definition at line 162 of file allocator.h.

  template<typename _Tp > typedef _Tp* std::allocator< _Tp >::pointer

Definition at line 147 of file allocator.h.

  template<typename _Tp > typedef true_type std::allocator< _Tp >::propagate_on_container_move_assignment

Definition at line 160 of file allocator.h.

  template<typename _Tp > typedef _Tp& std::allocator< _Tp >::reference

Definition at line 149 of file allocator.h.

  template<typename _Tp > typedef size_t std::allocator< _Tp >::size_type

Definition at line 142 of file allocator.h.

  template<typename _Tp > typedef _Tp std::allocator< _Tp >::value_type

Definition at line 141 of file allocator.h.

Constructor & Destructor Documentation

  template<typename _Tp > constexpr std::allocator< _Tp >::allocator () [inline], [constexpr], [noexcept]

Definition at line 168 of file allocator.h.

  template<typename _Tp > constexpr std::allocator< _Tp >::allocator (const allocator< _Tp > & __a) [inline], [constexpr], [noexcept]

Definition at line 171 of file allocator.h.

  template<typename _Tp > template<typename _Tp1 > constexpr std::allocator< _Tp >::allocator (const allocator< _Tp1 > &) [inline], [constexpr], [noexcept]

Definition at line 181 of file allocator.h.

  template<typename _Tp > std::allocator< _Tp >::~allocator () [inline], [noexcept]

Definition at line 186 of file allocator.h.

Friends And Related Function Documentation

  template<typename _Tp > constexpr bool operator!= (const allocator< _Tp > &, const allocator< _Tp > &) [friend]

Definition at line 221 of file allocator.h.

  template<typename _Tp > constexpr bool operator== (const allocator< _Tp > &, const allocator< _Tp > &) [friend]

Definition at line 216 of file allocator.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.