man __gnu_cxx::new_allocator (Fonctions bibliothèques) - An allocator that uses global new, as per [20.4].
NAME
__gnu_cxx::new_allocator - An allocator that uses global new, as per [20.4].
SYNOPSIS
#include <new_allocator.h>
Public Types
typedef size_t size_type
typedef ptrdiff_t difference_type
typedef Type * pointer
typedef const Type * const_pointer
typedef Type & reference
typedef const Type & const_reference
typedef Type value_type
Public Member Functions
new_allocator () throw ()
new_allocator (const new_allocator &) throw ()
template<typename Type1> new_allocator (const new_allocator< Type1 > &) throw ()
~new_allocator () throw ()
pointer address (reference x) const
const_pointer address (const_reference x) const
pointer allocate (size_type n, const void *=0)
void deallocate (pointer __p, size_type)
size_type max_size () const throw ()
void construct (pointer __p, const Type &__val)
void destroy (pointer __p)
Classes
struct rebind
Detailed Description
template<typename Type> class __gnu_cxx::new_allocator< Type >
An allocator that uses global new, as per [20.4].
This is precisely the allocator defined in the C++ Standard.
- •
- all allocation calls operator new
- •
- all deallocation calls operator delete
(See allocators info for more.)
Definition at line 47 of file new_allocator.h.
Author
Generated automatically by Doxygen for libstdc++-v3 Source from the source code.