ReactOS 0.4.15-dev-7958-gcd0bb1a
new_nothrow.cpp File Reference
#include <new>
Include dependency graph for new_nothrow.cpp:

Go to the source code of this file.

Functions

voidoperator new (std::size_t) throw (std::bad_alloc)
 
voidoperator new[] (std::size_t) throw (std::bad_alloc)
 
voidoperator new (std::size_t size, const std::nothrow_t &nothrow_constant) throw ()
 
voidoperator new[] (std::size_t size, const std::nothrow_t &nothrow_constant) throw ()
 

Function Documentation

◆ operator new() [1/2]

void * operator new ( std::size_t  size,
const std::nothrow_t &  nothrow_constant 
)
throw (
)

Definition at line 15 of file new_nothrow.cpp.

16{
17 try
18 {
19 return operator new (size);
20 }
21 catch (std::bad_alloc)
22 {
23 return NULL;
24 }
25}
#define NULL
Definition: types.h:112
GLsizeiptr size
Definition: glext.h:5919

◆ operator new() [2/2]

void * operator new ( std::size_t  )
throw (std::bad_alloc
)

◆ operator new[]() [1/2]

void * operator new[] ( std::size_t  size,
const std::nothrow_t &  nothrow_constant 
)
throw (
)

Definition at line 27 of file new_nothrow.cpp.

28{
29 try
30 {
31 return operator new[] (size);
32 }
33 catch (std::bad_alloc)
34 {
35 return NULL;
36 }
37}

◆ operator new[]() [2/2]

void * operator new[] ( std::size_t  )
throw (std::bad_alloc
)