ReactOS 0.4.16-dev-289-g096a551
_alloc.h File Reference
#include <stl/_cstddef.h>
#include <stl/_cstdlib.h>
#include <stl/_cstring.h>
#include <stl/_algobase.h>
#include <stl/_new.h>
#include <stl/_construct.h>
Include dependency graph for _alloc.h:
This graph shows which files directly or indirectly include this file:

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 >
 

Macros

#define _STLP_CONVERT_ALLOCATOR(__a, _Tp)   __a
 
#define _STLP_FORCE_ALLOCATORS(a, y)
 

Typedefs

typedef __node_alloc __alloc_type
 
typedef __alloc_type __sgi_alloc
 
typedef __sgi_alloc __single_client_alloc
 
typedef __sgi_alloc __multithreaded_alloc
 

Enumerations

enum  { _MAX_BYTES = 32 * sizeof(void*) }
 

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

Macro Definition Documentation

◆ _STLP_CONVERT_ALLOCATOR

#define _STLP_CONVERT_ALLOCATOR (   __a,
  _Tp 
)    __a

Definition at line 183 of file _alloc.h.

◆ _STLP_FORCE_ALLOCATORS

#define _STLP_FORCE_ALLOCATORS (   a,
  y 
)

Definition at line 436 of file _alloc.h.

Typedef Documentation

◆ __alloc_type

Definition at line 224 of file _alloc.h.

◆ __multithreaded_alloc

Definition at line 235 of file _alloc.h.

◆ __sgi_alloc

Definition at line 230 of file _alloc.h.

◆ __single_client_alloc

Definition at line 234 of file _alloc.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_MAX_BYTES 

Definition at line 141 of file _alloc.h.

141{ _MAX_BYTES = 32 * sizeof(void*) };
@ _MAX_BYTES
Definition: _alloc.h:141

Function Documentation

◆ __stl_alloc_create()

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

Definition at line 465 of file _alloc.h.

465{ return allocator<_Tp2>(); }

◆ __stl_alloc_rebind()

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

Definition at line 462 of file _alloc.h.

462{ return (allocator<_Tp2>&)(__a); }

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

◆ operator!=()

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

Definition at line 384 of file _alloc.h.

385{ return false; }

◆ operator==()

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

Definition at line 381 of file _alloc.h.

382{ return true; }

Variable Documentation

◆ __oom_handler_type

_STLP_BEGIN_NAMESPACE typedef void(* __oom_handler_type) () ( )

Definition at line 60 of file _alloc.h.

Referenced by __malloc_alloc::allocate(), and __malloc_alloc::set_malloc_handler().