Move-assign the target from rhs and return *this.
Declared in <bslstl_function.h>
bsl::function<PROTOTYPE>&
operator=(BloombergLP::bslmf::MovableRef<function> rhs);
Set the target of this object to the target (if any) held by the specified rhs object, destroy the target (if any) previously held by *this, and return *this. The result is equivalent to having constructed *this from rhs using the extended move constructor with allocator this->get_allocator(). If an exception is thrown, rhs will have a valid but unspecified value and *this will not be modified. Note that an exception will never be thrown if get_allocator() == rhs.get_allocator().
reference providing modifiable access to this object
| Name | Description |
|---|---|
| rhs | function whose target is moved into this object |