2 * PROJECT: ReactOS C++ runtime library
3 * LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
4 * PURPOSE: nothrow version of the new operators
5 * PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
10 void* operator new (std::size_t) throw(std::bad_alloc
);
11 void* operator new[] (std::size_t) throw(std::bad_alloc
);
13 const std::nothrow_t
std::nothrow
;
15 void* operator new (std::size_t size
, const std::nothrow_t
& nothrow_constant
) throw()
19 return operator new (size
);
21 catch (std::bad_alloc
)
27 void* operator new[] (std::size_t size
, const std::nothrow_t
& nothrow_constant
) throw()
31 return operator new[] (size
);
33 catch (std::bad_alloc
)