:relfileprefix: ../../../
[#AD5DD1423B97C85DA0DA23634AA416039CAFD910]

= Friend swap



== Synopsis

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

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

