33#ifndef _GLIBCXX_STDEXCEPT
34#define _GLIBCXX_STDEXCEPT 1
37#pragma GCC system_header
43namespace std _GLIBCXX_VISIBILITY(default)
45_GLIBCXX_BEGIN_NAMESPACE_VERSION
47#if _GLIBCXX_USE_DUAL_ABI
48#if _GLIBCXX_USE_CXX11_ABI
54 char _M_bytes[
sizeof(
const char*)];
59 __cow_string(
const char*,
size_t);
60 __cow_string(
const __cow_string&) _GLIBCXX_NOTHROW;
61 __cow_string& operator=(
const __cow_string&) _GLIBCXX_NOTHROW;
63#if __cplusplus >= 201103L
64 __cow_string(__cow_string&&) noexcept;
65 __cow_string& operator=(__cow_string&&) noexcept;
79 size_t _M_string_length;
80 char _M_local_buf[16];
85 char _M_bytes[
sizeof(__str)];
88 __sso_string() _GLIBCXX_NOTHROW;
89 __sso_string(const std::
string&);
90 __sso_string(const
char*,
size_t);
91 __sso_string(const __sso_string&);
92 __sso_string& operator=(const __sso_string&);
94#if __cplusplus >= 201103L
95 __sso_string(__sso_string&&) noexcept;
96 __sso_string& operator=(__sso_string&&) noexcept;
124#if __cplusplus >= 201103L
132#if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_DEFINE_STDEXCEPT_COPY_OPS
135#elif __cplusplus >= 201103L
140 virtual ~logic_error() _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW;
145 what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW;
147# ifdef _GLIBCXX_TM_TS_INTERNAL
149 ::_txnal_logic_error_get_msg(
void* e);
158 explicit domain_error(
const string& __arg) _GLIBCXX_TXN_SAFE;
159#if __cplusplus >= 201103L
160 explicit domain_error(
const char*) _GLIBCXX_TXN_SAFE;
161 domain_error(
const domain_error&) =
default;
162 domain_error& operator=(
const domain_error&) =
default;
163 domain_error(domain_error&&) =
default;
164 domain_error& operator=(domain_error&&) =
default;
166 virtual ~domain_error() _GLIBCXX_NOTHROW;
173 explicit invalid_argument(
const string& __arg) _GLIBCXX_TXN_SAFE;
174#if __cplusplus >= 201103L
175 explicit invalid_argument(
const char*) _GLIBCXX_TXN_SAFE;
176 invalid_argument(
const invalid_argument&) =
default;
177 invalid_argument& operator=(
const invalid_argument&) =
default;
178 invalid_argument(invalid_argument&&) =
default;
179 invalid_argument& operator=(invalid_argument&&) =
default;
181 virtual ~invalid_argument() _GLIBCXX_NOTHROW;
189 explicit length_error(
const string& __arg) _GLIBCXX_TXN_SAFE;
190#if __cplusplus >= 201103L
191 explicit length_error(
const char*) _GLIBCXX_TXN_SAFE;
192 length_error(
const length_error&) =
default;
193 length_error& operator=(
const length_error&) =
default;
194 length_error(length_error&&) =
default;
195 length_error& operator=(length_error&&) =
default;
197 virtual ~length_error() _GLIBCXX_NOTHROW;
205 explicit out_of_range(
const string& __arg) _GLIBCXX_TXN_SAFE;
206#if __cplusplus >= 201103L
207 explicit out_of_range(
const char*) _GLIBCXX_TXN_SAFE;
208 out_of_range(
const out_of_range&) =
default;
209 out_of_range& operator=(
const out_of_range&) =
default;
210 out_of_range(out_of_range&&) =
default;
211 out_of_range& operator=(out_of_range&&) =
default;
213 virtual ~out_of_range() _GLIBCXX_NOTHROW;
230#if __cplusplus >= 201103L
238#if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_DEFINE_STDEXCEPT_COPY_OPS
241#elif __cplusplus >= 201103L
251 what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW;
253# ifdef _GLIBCXX_TM_TS_INTERNAL
255 ::_txnal_runtime_error_get_msg(
void* e);
263 explicit range_error(
const string& __arg) _GLIBCXX_TXN_SAFE;
264#if __cplusplus >= 201103L
265 explicit range_error(
const char*) _GLIBCXX_TXN_SAFE;
266 range_error(
const range_error&) =
default;
267 range_error& operator=(
const range_error&) =
default;
268 range_error(range_error&&) =
default;
269 range_error& operator=(range_error&&) =
default;
271 virtual ~range_error() _GLIBCXX_NOTHROW;
278 explicit overflow_error(
const string& __arg) _GLIBCXX_TXN_SAFE;
279#if __cplusplus >= 201103L
280 explicit overflow_error(
const char*) _GLIBCXX_TXN_SAFE;
281 overflow_error(
const overflow_error&) =
default;
282 overflow_error& operator=(
const overflow_error&) =
default;
283 overflow_error(overflow_error&&) =
default;
284 overflow_error& operator=(overflow_error&&) =
default;
286 virtual ~overflow_error() _GLIBCXX_NOTHROW;
293 explicit underflow_error(
const string& __arg) _GLIBCXX_TXN_SAFE;
294#if __cplusplus >= 201103L
295 explicit underflow_error(
const char*) _GLIBCXX_TXN_SAFE;
296 underflow_error(
const underflow_error&) =
default;
297 underflow_error& operator=(
const underflow_error&) =
default;
298 underflow_error(underflow_error&&) =
default;
299 underflow_error& operator=(underflow_error&&) =
default;
301 virtual ~underflow_error() _GLIBCXX_NOTHROW;
306_GLIBCXX_END_NAMESPACE_VERSION
basic_string< char > string
A string of char.
ISO C++ entities toplevel namespace is std.
virtual const char * what() const noexcept
logic_error(const string &__arg)
runtime_error(const string &__arg)
virtual const char * what() const noexcept
Managing sequences of characters and character-like objects.