|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Old binders and adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Member functions | ||||
function_ref::operator= | ||||
Deduction guides |
constexpr function_ref& operator=(const function_ref&)noexcept=default; | (1) | (since C++26) |
template<class T> constexpr function_ref& operator=( T)= delete; | (2) | (since C++26) |
std::function_ref
satisfiescopyable
andTriviallyCopyable. This defaulted assignment operator performs a shallow copy of the storedthunk-ptr
andbound-entity
.std::function_ref
,std::is_pointer_v<T> isfalse, andT is not a specialization ofstd::nontype_t. This overload participates in overload resolution only if the constraints are satisfied in the conditions above.*this
constructs a newfunction_ref object(public member function)[edit] | |
replaces or destroys the target (public member function of std::copyable_function )[edit] | |
assigns a new target (public member function of std::function<R(Args...)> )[edit] | |
replaces or destroys the target (public member function of std::move_only_function )[edit] |