35#define _NEW_EXCEPT_H 1
44namespace std _GLIBCXX_VISIBILITY(default)
46_GLIBCXX_BEGIN_NAMESPACE_VERSION
54 class bad_alloc :
public exception
57 _GLIBCXX26_CONSTEXPR bad_alloc()
throw() { }
59#if __cplusplus >= 201103L
60 _GLIBCXX26_CONSTEXPR bad_alloc(
const bad_alloc&) =
default;
61 _GLIBCXX26_CONSTEXPR bad_alloc& operator=(
const bad_alloc&) =
default;
64#if __cplusplus >= 202400L
65 [[__gnu__::__gnu_inline__]]
66 constexpr inline virtual ~bad_alloc()
noexcept {}
68 [[__gnu__::__gnu_inline__]]
69 constexpr inline virtual const char*
what()
const noexcept
71 return "std::bad_alloc";
76 virtual ~bad_alloc()
throw();
79 virtual const char*
what()
const throw();
83#if __cplusplus >= 201103L
84 class bad_array_new_length :
public bad_alloc
87 _GLIBCXX26_CONSTEXPR bad_array_new_length()
throw() { }
89#if __cplusplus >= 202400L
90 [[__gnu__::__gnu_inline__]]
91 constexpr inline virtual ~bad_array_new_length() noexcept {}
93 [[__gnu__::__gnu_inline__]]
94 constexpr inline virtual const char*
what() const noexcept
96 return "std::bad_array_new_length";
101 virtual ~bad_array_new_length() throw();
104 virtual const
char* what() const throw();
109_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
Exception possibly thrown by new.
virtual const char * what() const