ReactOS 0.4.15-dev-7842-g558ab78
_new.h File Reference
#include <stl/_cstddef.h>
#include <stl/_cstdio.h>
Include dependency graph for _new.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _STLP_THROW_BAD_ALLOC   puts("out of memory\n"); exit(1)
 
#define _STLP_CHECK_NULL_ALLOC(__x)   return __x
 

Functions

_STLP_BEGIN_NAMESPACE void *_STLP_CALL __stl_new (size_t __n)
 
void _STLP_CALL __stl_delete (void *__p)
 

Macro Definition Documentation

◆ _STLP_CHECK_NULL_ALLOC

#define _STLP_CHECK_NULL_ALLOC (   __x)    return __x

Definition at line 125 of file _new.h.

◆ _STLP_THROW_BAD_ALLOC

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

Definition at line 116 of file _new.h.

Function Documentation

◆ __stl_delete()

void _STLP_CALL __stl_delete ( void __p)
inline

Definition at line 135 of file _new.h.

135{ ::operator delete(__p); }
operator

Referenced by _Valarray_base< _Tp >::_M_deallocate(), __node_alloc::deallocate(), and __new_alloc::deallocate().

◆ __stl_new()

_STLP_BEGIN_NAMESPACE void *_STLP_CALL __stl_new ( size_t  __n)
inline

Definition at line 134 of file _new.h.

return __n
Definition: _algo.h:75
#define _STLP_CHECK_NULL_ALLOC(__x)
Definition: _new.h:125

Referenced by _Valarray_base< _Tp >::_M_allocate(), __node_alloc::allocate(), and __new_alloc::allocate().