copy (1) | function& operator= (const function& rhs); |
---|---|
move (2) | function& operator= (function&& rhs); |
target (3) | template <class Fn> function& operator= (Fn&& fn);template <class Fn> function& operator= (reference_wrapper<Fn> fn) noexcept; |
clear (4) | function& operator= (nullptr_t fn); |
std::move(fn)
).*this
|
|
foo: 101 |