std::experimental::unique_resource<R, D>::unique_resource - cppreference.com ([original](https://en.cppreference.com/w/cpp/experimental/unique%5Fresource/unique%5Fresource.html)) (raw)

| ~unique_resource(); | | (library fundamentals TS v3) | | --------------------- | | ---------------------------- |

Disposes the resource by calling the deleter with the underlying resource handle if the unique_resource owns it, equivalent to calling reset(). Then destroys the stored resource handle and the deleter.

[edit] See also

| | disposes or replaces the managed resource (public member function) [edit] | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | destructs the managed object if such is present (public member function of std::unique_ptr<T,Deleter>) [edit] |