/home/ntakagi/work/STLport-5.1.5/stlport/stl/_alloc.h File Reference

#include <stl/_cstddef.h>
#include <stl/_cstdlib.h>
#include <stl/_cstring.h>
#include <stl/_algobase.h>
#include <stl/_cstdio.h>
#include <stl/_new.h>
#include <stl/_construct.h>

Go to the source code of this file.

Classes

class  __malloc_alloc
class  __new_alloc
class  __debug_alloc< _Alloc >
struct  __debug_alloc< _Alloc >::__alloc_header
class  __node_alloc
struct  _Alloc_traits< _Tp, _Allocator >
class  allocator< _Tp >
class  allocator< void >
struct  __alloc_type_traits< _Tp >
struct  __type_traits< allocator< char > >
class  _STLP_alloc_proxy< _Value, _Tp, _MaybeReboundAlloc >

Defines

#define __THROW_BAD_ALLOC   puts("out of memory\n"); exit(1)
#define __ALLOC   __sgi_alloc
#define _STLP_CONVERT_ALLOCATOR(__a, _Tp)   __a
#define _STLP_FORCE_ALLOCATORS(a, y)

Typedefs

typedef __node_alloc __sgi_alloc
typedef __node_alloc __single_client_alloc
typedef __node_alloc __multithreaded_alloc

Enumerations

enum  { _ALIGN = 8, _ALIGN_SHIFT = 3, _MAX_BYTES = 128 }

Functions

template<class _T1, class _T2>
bool _STLP_CALL operator== (const allocator< _T1 > &, const allocator< _T2 > &) _STLP_NOTHROW
template<class _T1, class _T2>
bool _STLP_CALL operator!= (const allocator< _T1 > &, const allocator< _T2 > &) _STLP_NOTHROW
template<class _Tp1, class _Tp2>
allocator< _Tp2 > &_STLP_CALL __stl_alloc_rebind (allocator< _Tp1 > &__a, const _Tp2 *)
template<class _Tp1, class _Tp2>
allocator< _Tp2 > _STLP_CALL __stl_alloc_create (const allocator< _Tp1 > &, const _Tp2 *)

Variables

_STLP_BEGIN_NAMESPACE typedef
void(*) 
__oom_handler_type ()


Define Documentation

#define __ALLOC   __sgi_alloc

Definition at line 70 of file _alloc.h.

#define __THROW_BAD_ALLOC   puts("out of memory\n"); exit(1)

#define _STLP_FORCE_ALLOCATORS ( a,
 ) 

Definition at line 521 of file _alloc.h.


Typedef Documentation

Definition at line 310 of file _alloc.h.

Definition at line 306 of file _alloc.h.

Definition at line 309 of file _alloc.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
_ALIGN 
_ALIGN_SHIFT 
_MAX_BYTES 

Definition at line 184 of file _alloc.h.


Function Documentation

template<class _Tp1, class _Tp2>
allocator<_Tp2> _STLP_CALL __stl_alloc_create ( const allocator< _Tp1 > &  ,
const _Tp2 *   
) [inline]

Definition at line 550 of file _alloc.h.

template<class _Tp1, class _Tp2>
allocator<_Tp2>& _STLP_CALL __stl_alloc_rebind ( allocator< _Tp1 > &  __a,
const _Tp2 *   
) [inline]

Definition at line 547 of file _alloc.h.

Referenced by _Rope_RopeRep< _CharT, _Alloc >::_S_free_string().

template<class _T1, class _T2>
bool _STLP_CALL operator!= ( const allocator< _T1 > &  ,
const allocator< _T2 > &   
) [inline]

Definition at line 469 of file _alloc.h.

template<class _T1, class _T2>
bool _STLP_CALL operator== ( const allocator< _T1 > &  ,
const allocator< _T2 > &   
) [inline]

Definition at line 468 of file _alloc.h.


Variable Documentation

_STLP_BEGIN_NAMESPACE typedef void(* ) __oom_handler_type()

Definition at line 83 of file _alloc.h.

Referenced by __malloc_alloc_impl::set_malloc_handler().



Generated on Mon Mar 10 15:32:48 2008 by  doxygen 1.5.1