39 #pragma GCC system_header
44 #pragma GCC visibility push(default)
66 virtual const char*
what()
const throw();
71 extern const nothrow_t nothrow;
93 void* operator new(std::
size_t) throw (std::
bad_alloc);
94 void* operator new[](std::
size_t) throw (std::bad_alloc);
95 void operator delete(
void*) throw();
96 void operator delete[](
void*) throw();
97 void* operator new(std::
size_t, const std::nothrow_t&) throw();
98 void* operator new[](std::
size_t, const std::nothrow_t&) throw();
99 void operator delete(
void*, const std::nothrow_t&) throw();
100 void operator delete[](
void*, const std::nothrow_t&) throw();
103 inline
void* operator new(std::
size_t,
void* __p) throw() {
return __p; }
104 inline void*
operator new[](std::size_t,
void* __p)
throw() {
return __p; }
107 inline void operator delete (
void*,
void*)
throw() { }
108 inline void operator delete[](
void*,
void*)
throw() { }
112 #pragma GCC visibility pop
virtual const char * what() const
new_handler set_new_handler(new_handler)
Takes a replacement handler as the argument, returns the previous handler.
Exception possibly thrown by new.bad_alloc (or classes derived from it) is used to report allocation ...
Base class for all library exceptions.