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) _GLIBCXX_THROW (std::
bad_alloc)
94 __attribute__((__externally_visible__));
95 void* operator new[](std::
size_t) _GLIBCXX_THROW (std::
bad_alloc)
96 __attribute__((__externally_visible__));
97 void operator delete(
void*) _GLIBCXX_USE_NOEXCEPT
98 __attribute__((__externally_visible__));
99 void operator delete[](
void*) _GLIBCXX_USE_NOEXCEPT
100 __attribute__((__externally_visible__));
101 void* operator new(std::
size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
102 __attribute__((__externally_visible__));
103 void* operator new[](std::
size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
104 __attribute__((__externally_visible__));
105 void operator delete(
void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
106 __attribute__((__externally_visible__));
107 void operator delete[](
void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
108 __attribute__((__externally_visible__));
111 inline
void* operator new(std::
size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
113 inline void*
operator new[](std::size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
117 inline void operator delete (
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
118 inline void operator delete[](
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
122 #pragma GCC visibility pop
Base class for all library exceptions.
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 ...