Namespaces
Variants

std::experimental::ranges:: Destructible

From cppreference.net
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 ) ,而不仅仅是在调用时不抛出异常,并且允许引用类型和数组类型。

另请参阅

检查类型是否拥有未被删除的析构函数
(类模板)