ReactOS  0.4.13-dev-92-gf251225
_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

◆ __stl_new()

_STLP_BEGIN_NAMESPACE void* _STLP_CALL __stl_new ( size_t  __n)
inline

Definition at line 134 of file _new.h.

134 { _STLP_CHECK_NULL_ALLOC(::operator new(__n)); }
return __n
Definition: _algo.h:75
#define _STLP_CHECK_NULL_ALLOC(__x)
Definition: _new.h:125

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