35 #define _NEW_EXCEPT_H 1
44 namespace std _GLIBCXX_VISIBILITY(default)
46 _GLIBCXX_BEGIN_NAMESPACE_VERSION
57 _GLIBCXX26_CONSTEXPR
bad_alloc()
throw() { }
59 #if __cplusplus >= 201103L
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";
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