:relfileprefix: ../../../
[#90553265B2C3B1438F5390055D24B78CC2B3225E]

= Function unique_resource::~unique_resource

pass:v,q[Invokes `reset()` and destroys the resource.]


== Synopsis

Declared in header `<https://github.com/Lastique/scope/blob/develop/include/boost/scope/unique_resource.hpp#L1296[boost/scope/unique_resource.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
~unique_resource() noexcept(detail::is_nothrow_invocable<deleter_type &, resource_type &>::value);
----

== Description

pass:v,q[**Throws:** Nothing, unless invoking the deleter throws.]






