:relfileprefix: ../../../
[#C78CB675CCEE6578EFDEB0D69E45D6F853DDAE29-reset]

= Overload set unique_resource::reset

== Members


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


[source,cpp,subs="verbatim,macros,-callouts"]
----
void
reset() noexcept(detail::is_nothrow_invocable<deleter_type &, resource_type &>::value);
  xref:boost/scope/unique_resource-0c/reset-05.adoc[pass:c,q,m[*_» more..._*]]
----




[source,cpp,subs="verbatim,macros,-callouts"]
----
template<typename R>
enable_if<detail::conjunction<std::is_assignable<internal_resource_type &, typename detail::move_or_copy_assign_ref<R, resource_type>::type>, detail::disjunction<detail::negation<std::is_reference<resource_type>>, std::is_reference<R>>>::value>::type
reset(R&& res) noexcept(detail::conjunction<detail::is_nothrow_invocable<deleter_type &, resource_type &>, std::is_nothrow_assignable<internal_resource_type &, typename detail::move_or_copy_assign_ref<R, resource_type>::type>>::value);
  xref:boost/scope/unique_resource-0c/reset-0f.adoc[pass:c,q,m[*_» more..._*]]
----

