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 | ||||||||||||||||||
|
헤더에 정의됨
<experimental/ranges/concepts>
|
||
|
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)
|
해당 타입이 삭제되지 않은 소멸자를 가지고 있는지 확인합니다
(클래스 템플릿) |