Scroll to navigation

std::allocator(3) Library Functions Manual std::allocator(3)

NAME

std::allocator -

The 'standard' allocator, as per [20.4].

Further details: http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html.

SYNOPSIS

Inherits __gnu_cxx::new_allocator< _Tp >.

Public Types


typedef const _Tp * const_pointer
typedef const _Tp & const_reference
typedef ptrdiff_t difference_type
typedef _Tp * pointer
typedef _Tp & reference
typedef size_t size_type
typedef _Tp value_type

Public Member Functions


const_pointer address (const_reference __x) const
pointer address (reference __x) const
pointer allocate (size_type __n, const void *=0)
template<typename _Tp1 > allocator (const allocator< _Tp1 > &) throw ()
allocator (const allocator &__a) throw ()
template<typename... _Args> void construct (pointer __p, _Args &&...__args)
void construct (pointer __p, const _Tp &__val)
void deallocate (pointer __p, size_type)
void destroy (pointer __p)
size_type max_size () const throw ()

Detailed Description

template<typename _Tp> class std::allocator< _Tp >

The 'standard' allocator, as per [20.4].

Further details: http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html.

Definition at line 86 of file allocator.h.

Author

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

19 Jun 2018 libstdc++