ReactOS  0.4.12-dev-51-ge94618b
__node_alloc Class Reference

#include <_alloc.h>

Public Types

typedef char value_type
 

Static Public Member Functions

static void *_STLP_CALL allocate (size_t &__n)
 
static void _STLP_CALL deallocate (void *__p, size_t __n)
 

Static Private Member Functions

static void *_STLP_CALL _M_allocate (size_t &__n)
 
static void _STLP_CALL _M_deallocate (void *__p, size_t __n)
 

Detailed Description

Definition at line 148 of file _alloc.h.

Member Typedef Documentation

◆ value_type

Definition at line 155 of file _alloc.h.

Member Function Documentation

◆ _M_allocate()

void *_STLP_CALL __node_alloc::_M_allocate ( size_t __n)
staticprivate

Definition at line 742 of file allocators.cpp.

return __n
Definition: _algo.h:75
static void * _M_allocate(size_t &__n)
Definition: allocators.cpp:318

◆ _M_deallocate()

void _STLP_CALL __node_alloc::_M_deallocate ( void __p,
size_t  __n 
)
staticprivate

Definition at line 745 of file allocators.cpp.

return __n
Definition: _algo.h:75
static void _M_deallocate(void *__p, size_t __n)
Definition: allocators.cpp:340

◆ allocate()

static void* _STLP_CALL __node_alloc::allocate ( size_t __n)
inlinestatic

Definition at line 157 of file _alloc.h.

Referenced by allocator< _CharT >::_M_allocate(), and allocator< _CharT >::allocate().

158  { return (__n > (size_t)_MAX_BYTES) ? __stl_new(__n) : _M_allocate(__n); }
return __n
Definition: _algo.h:75
_STLP_BEGIN_NAMESPACE void *_STLP_CALL __stl_new(size_t __n)
Definition: _new.h:134
static void *_STLP_CALL _M_allocate(size_t &__n)
Definition: allocators.cpp:742

◆ deallocate()

static void _STLP_CALL __node_alloc::deallocate ( void __p,
size_t  __n 
)
inlinestatic

Definition at line 160 of file _alloc.h.

Referenced by allocator< _CharT >::deallocate().

161  { if (__n > (size_t)_MAX_BYTES) __stl_delete(__p); else _M_deallocate(__p, __n); }
void _STLP_CALL __stl_delete(void *__p)
Definition: _new.h:135
return __n
Definition: _algo.h:75
static void _STLP_CALL _M_deallocate(void *__p, size_t __n)
Definition: allocators.cpp:745

The documentation for this class was generated from the following files: