:relfileprefix: ../../../
[#55BB49ECFCF9E5BDE07529C2C858463500FCB6C4]

= Function unique_resource::reset

pass:v,q[If the resource is allocated, calls the deleter function on it and marks the resource as unallocated.]


== Synopsis

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

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

== Description

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



== Return Value

* `void` 




