std::experimental::ranges:: Destructible
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| Core language concepts | ||||||||||||||||||
| Object concepts | ||||||||||||||||||
|
||||||||||||||||||
| Comparison concepts | ||||||||||||||||||
| Callable concepts | ||||||||||||||||||
| URNG concept | ||||||||||||||||||
|
template
<
class
T
>
concept bool Destructible = std:: is_nothrow_destructible < T > :: value ; |
(ranges TS) | |
概念
Destructible
规定了所有类型(包括引用类型)的实例在其生命周期结束时能够被安全销毁的这一概念。
在
Destructible<T>
与
std::
is_nothrow_destructible
<
T
>
::
value
之间不需要存在任何包含关系。
注释
与主C++标准中的
Destructible
命名要求不同,
Destructible
要求析构函数必须为
noexcept
(
true
)
,而不仅仅是在调用时不抛出异常,并且允许引用类型和数组类型。
另请参阅
|
(C++11)
(C++11)
(C++11)
|
检查类型是否拥有未被删除的析构函数
(类模板) |