:relfileprefix: ../../../
[#41B48B7C041E4CC4BD79A0290E0ABA4D788C8BA8]

= Function unique_resource::swap



== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
template<bool Requires = detail::is_swappable<data>::value>
enable_if<Requires>::type
swap(xref:boost/scope/unique_resource-0c.adoc[unique_resource]& that) noexcept(detail::is_nothrow_swappable<data>::value);
----

