std_allocator.3cxx

Langue: en

Version: 353683 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

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


allocator (const allocator &__a) throw ()

template<typename _Tp1 > allocator (const allocator< _Tp1 > &) throw ()

pointer address (reference __x) const

const_pointer address (const_reference __x) const

pointer allocate (size_type __n, const void *=0)

void construct (pointer __p, const _Tp &__val)

template<typename... _Args> void construct (pointer __p, _Args &&...__args)

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.