std:: destructible
From cppreference.net
C++
Concepts library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||
|
ヘッダーで定義
<concepts>
|
||
|
template
<
class
T
>
concept destructible = std:: is_nothrow_destructible_v < T > ; |
(C++20以降) | |
destructible
コンセプトは、そのインスタンスが生存期間の終了時に安全に破棄可能なすべての型(参照型を含む)の概念を定義します。
注記
Destructible
名前付き要件とは異なり、
std::destructible
はデストラクタが単に呼び出された際に例外を投げないだけでなく、
noexcept
(
true
)
であることを要求し、参照型と配列型を許可します。
参考文献
- C++23標準 (ISO/IEC 14882:2024):
-
-
18.4.10 コンセプト
destructible[concept.destructible]
-
18.4.10 コンセプト
- C++20標準 (ISO/IEC 14882:2020):
-
-
18.4.10 コンセプト
destructible[concept.destructible]
-
18.4.10 コンセプト
関連項目
|
(C++11)
(C++11)
(C++11)
|
型が削除されていないデストラクタを持つかどうかをチェックする
(クラステンプレート) |