37 #pragma GCC system_header
42 #pragma GCC visibility push(default)
64 virtual const char*
what()
const throw();
67 #if __cplusplus >= 201103L
68 class bad_array_new_length :
public bad_alloc
71 bad_array_new_length() throw() { };
75 virtual ~bad_array_new_length() throw();
78 virtual const
char* what() const throw();
84 extern const nothrow_t nothrow;
94 #if __cplusplus >= 201103L
112 __attribute__((__externally_visible__));
113 void* operator new[](
std::
size_t) _GLIBCXX_THROW (
std::bad_alloc)
114 __attribute__((__externally_visible__));
115 void operator delete(
void*) _GLIBCXX_USE_NOEXCEPT
116 __attribute__((__externally_visible__));
117 void operator delete[](
void*) _GLIBCXX_USE_NOEXCEPT
118 __attribute__((__externally_visible__));
119 void* operator new(
std::
size_t, const
std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
120 __attribute__((__externally_visible__));
121 void* operator new[](
std::
size_t, const
std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
122 __attribute__((__externally_visible__));
123 void operator delete(
void*, const
std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
124 __attribute__((__externally_visible__));
125 void operator delete[](
void*, const
std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
126 __attribute__((__externally_visible__));
129 inline
void* operator new(
std::
size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
131 inline void*
operator new[](std::size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
135 inline void operator delete (
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
136 inline void operator delete[](
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
140 #pragma GCC visibility pop
Exception possibly thrown by new.bad_alloc (or classes derived from it) is used to report allocation ...
virtual const char * what() const
ISO C++ entities toplevel namespace is std.
new_handler set_new_handler(new_handler)
Takes a replacement handler as the argument, returns the previous handler.
new_handler get_new_handler() noexcept
Return the current new handler.
Base class for all library exceptions.