[#bsl-function-0a-operator_assign-05]
= xref:bsl.adoc[bsl]::xref:bsl/function-0a.adoc[function]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Destroy the current target (if any) of this object, then set the target to the specified `rhs` wrapper containing a reference to a callable object and return `&ast;this`&period; The result is equivalent to having constructed `&ast;this` from `rhs` and `this&hyphen;&gt;get&lowbar;allocator()`&period; Note that this assignment is a separate overload only because it is unconditionally `noexcept`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FUNC&gt;
xref:bsl/function-0a.adoc[function]&
operator&equals;(bsl::reference&lowbar;wrapper&lt;FUNC&gt; rhs) noexcept
requires IsInvocableWithPrototype&lt;typename Decay&lt;FUNC&gt;&colon;&colon;type&gt;&colon;&colon;value;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
