/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 __THROW_BAD_ALLOC puts("out of memory\n"); exit(1) |
#define _STLP_CONVERT_ALLOCATOR |
( |
__a, |
|
|
_Tp |
|
) |
__a |
Definition at line 231 of file _alloc.h.
Referenced by _Alloc_traits< _Tp, _Allocator >::create_allocator(), deque< _Tp, >::deque(), vector< locale::facet * >::get_allocator(), _Rb_tree_base< _Value, _Alloc >::get_allocator(), basic_string< char, char_traits< char >, allocator< char > >::get_allocator(), slist< _Tp, _Alloc >::get_allocator(), _Slist_base< _Tp, _Alloc >::get_allocator(), multiset< _Key,, >::get_allocator(), set< _Key,, >::get_allocator(), list< _Tp, _Alloc >::get_allocator(), _List_base< _Tp, _Alloc >::get_allocator(), deque< _Tp, >::get_allocator(), _Bvector_base< _Alloc >::get_allocator(), list< _Tp, _Alloc >::list(), and slist< _Tp, _Alloc >::slist().
#define _STLP_FORCE_ALLOCATORS |
( |
a, |
|
|
y |
|
) |
|
Typedef Documentation
Enumeration Type Documentation
- 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] |
template<class _Tp1, class _Tp2>
allocator<_Tp2>& _STLP_CALL __stl_alloc_rebind |
( |
allocator< _Tp1 > & |
__a, |
|
|
const _Tp2 * |
| |
|
) |
| | [inline] |
template<class _T1, class _T2>
bool _STLP_CALL operator!= |
( |
const allocator< _T1 > & |
, |
|
|
const allocator< _T2 > & |
| |
|
) |
| | [inline] |
template<class _T1, class _T2>
bool _STLP_CALL operator== |
( |
const allocator< _T1 > & |
, |
|
|
const allocator< _T2 > & |
| |
|
) |
| | [inline] |
Variable Documentation
Generated on Mon Mar 10 15:32:48 2008 by
1.5.1
|