std::experimental::unique_resource<R, D>:: ~unique_resource
From cppreference.net
<
cpp
|
experimental
|
unique resource
C++
Experimental
| 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 |
std::experimental::unique_resource
| Member functions | ||||
|
unique_resource::~unique_resource
|
||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
| Deduction guides |
|
~unique_resource
(
)
;
|
(라이브러리 fundamentals TS v3) | |
리소스를 소유하고 있는 경우 기본 리소스 핸들과 함께 삭제자를 호출하여 리소스를 처리하며,
unique_resource
이(가) 소유하고 있을 때
reset()
을 호출하는 것과 동일합니다. 그런 다음 저장된 리소스 핸들과 삭제자를 파괴합니다.
참고 항목
|
관리되는 리소스를 폐기하거나 교체합니다
(public member function) |
|
|
존재하는 경우 관리되는 객체를 파괴합니다
(
std::unique_ptr<T,Deleter>
의
public member function)
|