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 #if __cplusplus > 201103L || !defined(__STRICT_ANSI__)
85 class bad_array_length :
public bad_alloc
88 bad_array_length() throw() { };
92 virtual ~bad_array_length() throw();
95 virtual const
char* what() const throw();
101 extern const nothrow_t nothrow;
111 #if __cplusplus >= 201103L
129 __attribute__((__externally_visible__));
130 void* operator new[](std::
size_t) _GLIBCXX_THROW (std::bad_alloc)
131 __attribute__((__externally_visible__));
132 void operator delete(
void*) _GLIBCXX_USE_NOEXCEPT
133 __attribute__((__externally_visible__));
134 void operator delete[](
void*) _GLIBCXX_USE_NOEXCEPT
135 __attribute__((__externally_visible__));
136 void* operator new(std::
size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
137 __attribute__((__externally_visible__));
138 void* operator new[](std::
size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
139 __attribute__((__externally_visible__));
140 void operator delete(
void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
141 __attribute__((__externally_visible__));
142 void operator delete[](
void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
143 __attribute__((__externally_visible__));
146 inline
void* operator new(std::
size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
148 inline void*
operator new[](std::size_t,
void* __p) _GLIBCXX_USE_NOEXCEPT
152 inline void operator delete (
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
153 inline void operator delete[](
void*,
void*) _GLIBCXX_USE_NOEXCEPT { }
157 #pragma GCC visibility pop
Base class for all library exceptions.
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.
virtual const char * what() const
Exception possibly thrown by new.bad_alloc (or classes derived from it) is used to report allocation ...