ReactOS 0.4.15-dev-7654-g6bc40d3
__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)

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 

Definition at line 745 of file allocators.cpp.

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

◆ allocate()

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

Definition at line 157 of file _alloc.h.

158 { return (__n > (size_t)_MAX_BYTES) ? __stl_new(__n) : _M_allocate(__n); }
Definition: _alloc.h:141
_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

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

◆ deallocate()

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

Definition at line 160 of file _alloc.h.

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
static void _STLP_CALL _M_deallocate(void *__p, size_t __n)
Definition: allocators.cpp:745

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

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