Add set_new_handler and nothrow implementations
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@104073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
10
src/new.cpp
10
src/new.cpp
@@ -118,6 +118,16 @@ operator delete[] (void* ptr, const std::nothrow_t&) throw ()
|
|||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
|
||||||
|
const nothrow_t nothrow = {};
|
||||||
|
|
||||||
|
new_handler
|
||||||
|
set_new_handler(new_handler handler) throw()
|
||||||
|
{
|
||||||
|
new_handler r = __new_handler;
|
||||||
|
__new_handler = handler;
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
bad_alloc::bad_alloc() throw()
|
bad_alloc::bad_alloc() throw()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user