__gnu_cxx::malloc_allocator< Type > Class Template Reference

An allocator that uses malloc. More...

#include <malloc_allocator.h>

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

Public Member Functions

 malloc_allocator () throw ()
 malloc_allocator (const malloc_allocator &) throw ()
template<typename Type1>
 malloc_allocator (const malloc_allocator< Type1 > &) throw ()
 ~malloc_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::malloc_allocator< Type >

An allocator that uses malloc.

This is precisely the allocator defined in the C++ Standard.

(See allocators info for more.)

Definition at line 47 of file malloc_allocator.h.


The documentation for this class was generated from the following file:
Generated on Wed Oct 3 06:18:19 2007 for libstdc++-v3 Source by  doxygen 1.5.3