__gnu_cxx::debug_allocator< _Alloc > Class Template Reference

A meta-allocator with debugging bits, as per [20.4]. More...

#include <debug_allocator.h>

List of all members.

Public Types

typedef _Alloc::size_type size_type
typedef _Alloc::difference_type difference_type
typedef _Alloc::pointer pointer
typedef _Alloc::const_pointer const_pointer
typedef _Alloc::reference reference
typedef _Alloc::const_reference const_reference
typedef _Alloc::value_type value_type

Public Member Functions

 debug_allocator ()
pointer allocate (size_type __n)
pointer allocate (size_type __n, const void *__hint)
void deallocate (pointer __p, size_type __n)

Private Attributes

size_type _M_extra
_Alloc _M_allocator


Detailed Description

template<typename _Alloc>
class __gnu_cxx::debug_allocator< _Alloc >

A meta-allocator with debugging bits, as per [20.4].

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

Definition at line 63 of file debug_allocator.h.


Member Typedef Documentation

template<typename _Alloc>
typedef _Alloc::const_pointer __gnu_cxx::debug_allocator< _Alloc >::const_pointer

Definition at line 69 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::const_reference __gnu_cxx::debug_allocator< _Alloc >::const_reference

Definition at line 71 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::difference_type __gnu_cxx::debug_allocator< _Alloc >::difference_type

Definition at line 67 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::pointer __gnu_cxx::debug_allocator< _Alloc >::pointer

Definition at line 68 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::reference __gnu_cxx::debug_allocator< _Alloc >::reference

Definition at line 70 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::size_type __gnu_cxx::debug_allocator< _Alloc >::size_type

Definition at line 66 of file debug_allocator.h.

template<typename _Alloc>
typedef _Alloc::value_type __gnu_cxx::debug_allocator< _Alloc >::value_type

Definition at line 72 of file debug_allocator.h.


Constructor & Destructor Documentation

template<typename _Alloc>
__gnu_cxx::debug_allocator< _Alloc >::debug_allocator (  )  [inline]

Definition at line 82 of file debug_allocator.h.

References __gnu_cxx::debug_allocator< _Alloc >::_M_extra.


Member Function Documentation

template<typename _Alloc>
pointer __gnu_cxx::debug_allocator< _Alloc >::allocate ( size_type  __n,
const void *  __hint 
) [inline]

Definition at line 98 of file debug_allocator.h.

References __gnu_cxx::debug_allocator< _Alloc >::_M_allocator, and __gnu_cxx::debug_allocator< _Alloc >::_M_extra.

template<typename _Alloc>
pointer __gnu_cxx::debug_allocator< _Alloc >::allocate ( size_type  __n  )  [inline]

Definition at line 89 of file debug_allocator.h.

References __gnu_cxx::debug_allocator< _Alloc >::_M_allocator, and __gnu_cxx::debug_allocator< _Alloc >::_M_extra.

template<typename _Alloc>
void __gnu_cxx::debug_allocator< _Alloc >::deallocate ( pointer  __p,
size_type  __n 
) [inline]

Definition at line 107 of file debug_allocator.h.

References __gnu_cxx::debug_allocator< _Alloc >::_M_allocator, and __gnu_cxx::debug_allocator< _Alloc >::_M_extra.


Member Data Documentation

template<typename _Alloc>
_Alloc __gnu_cxx::debug_allocator< _Alloc >::_M_allocator [private]

Definition at line 79 of file debug_allocator.h.

Referenced by __gnu_cxx::debug_allocator< _Alloc >::allocate(), and __gnu_cxx::debug_allocator< _Alloc >::deallocate().

template<typename _Alloc>
size_type __gnu_cxx::debug_allocator< _Alloc >::_M_extra [private]

Definition at line 77 of file debug_allocator.h.

Referenced by __gnu_cxx::debug_allocator< _Alloc >::allocate(), __gnu_cxx::debug_allocator< _Alloc >::deallocate(), and __gnu_cxx::debug_allocator< _Alloc >::debug_allocator().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:57:53 2010 for GNU C++ STL by  doxygen 1.4.7