std::bad_exception:: bad_exception
From cppreference.net
<
cpp
|
error
|
bad exception
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Diagnostics library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::bad_exception
| Member functions | ||||
|
bad_exception::bad_exception
|
||||
| (1) | ||
|
bad_exception
(
)
throw
(
)
;
|
(C++11まで) | |
|
bad_exception
(
)
noexcept
;
|
(C++11から)
(constexprはC++26から) |
|
| (2) | ||
|
bad_exception
(
const
bad_exception
&
other
)
throw
(
)
;
|
(C++11まで) | |
|
bad_exception
(
const
bad_exception
&
other
)
noexcept
;
|
(C++11から)
(constexprはC++26から) |
|
bad_exception
オブジェクトを新しく構築します。
1)
デフォルトコンストラクタ。
what()
は実装定義の文字列を返します。
2)
コピーコンストラクタ。オブジェクトを
other
の内容で初期化する。
*
this
と
other
の両方が動的型
std::bad_exception
を持つ場合、
std::
strcmp
(
what
(
)
, other.
what
(
)
)
==
0
(C++11以降)
となる。
パラメータ
| その他 | - |
bad_exception
オブジェクトの初期化に使用する
|