:relfileprefix: ../../../
[#DED77E9891FDA094BB715B11B79E4EB5651A245B]

= Function unique_resource::operator=



== Synopsis

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

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

