std::allocator< Type > Struct Template Reference

The "standard" allocator, as per [20.4]. More...

#include <stl_alloc.h>

Collaboration diagram for std::allocator< Type >:

Collaboration graph
[legend]
List of all members.

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
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

 allocator () throw ()
 allocator (const allocator &) throw ()
template<typename Type1>
 allocator (const allocator< Type1 > &) throw ()
 ~allocator () throw ()
pointer address (reference x) const
const_pointer address (const_reference x) const
Type * allocate (size_type n, const void *=0)
void deallocate (pointer __p, size_type n)
size_type max_size () const throw ()
void construct (pointer __p, const Type &__val)
void destroy (pointer __p)
 allocator () throw ()
 allocator (const allocator &a) throw ()
template<typename Type1>
 allocator (const allocator< Type1, Alloc > &a) throw ()
 ~allocator () throw ()
pointer address (reference x) const
const_pointer address (const_reference x) const
Type * allocate (size_type n, const void *=0)
void deallocate (pointer __p, size_type n)
size_type max_size () const throw ()
void construct (pointer __p, const Type &__val)
void destroy (pointer __p)

Public Attributes

Alloc __underlying_alloc

Private Types

typedef alloc Alloc

Classes

struct  rebind

Detailed Description

template<typename Type>
struct std::allocator< Type >

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

The private Alloc is "SGI" style. (See comments at the top of stl_alloc.h.)

The underlying allocator behaves as follows.

(See allocators info for more.)

Definition at line 636 of file stl_alloc.h.


The documentation for this struct was generated from the following file:
Generated on Wed Jan 3 20:19:45 2007 for libstdc++-v3 Source by  doxygen 1.5.1