1 // Standard C++ dynamic memory management header
13 class bad_alloc : public exception
16 bad_alloc() throw() { }
18 // This declaration is not useless:
19 // http://gcc.gnu.org/onlinedocs/gcc-3.0.2/gcc_6.html#SEC118
20 virtual ~bad_alloc() throw();
22 // See comment in eh_exception.cc.
23 virtual const char* what() const throw();
28 extern const nothrow_t nothrow;
31 typedef void (*new_handler)();
33 new_handler set_new_handler(new_handler) throw();
35 void* operator new (std::size_t size, const std::nothrow_t& nothrow_constant) throw();
36 inline void* operator new (std::size_t size, void* ptr) throw() { return ptr; }
37 void* operator new[] (std::size_t size, const std::nothrow_t& nothrow_constant) throw();
38 inline void* operator new[] (std::size_t size, void* ptr) throw() { return ptr; }
40 void operator delete (void* ptr) throw ();
41 void operator delete (void* ptr, const std::nothrow_t& nothrow_constant) throw();
42 inline void operator delete (void* ptr, void* voidptr2) throw() { }
43 void operator delete[] (void* ptr) throw ();
44 void operator delete[] (void* ptr, const std::nothrow_t& nothrow_constant) throw();
45 inline void operator delete[] (void* ptr, void* voidptr2) throw() { }