|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Old binders and adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Member functions | ||||
function_ref::operator() | ||||
Deduction guides |
R operator()( Args...args)constnoexcept(/*noex*/); | (since C++26) | |
Invokes the storedthunk-ptr
withbound-entity
as its first parameter and the rest of the parametersargs
. The/*noex*/ part ofoperator() is identical to those of the template parameter ofstd::function_ref
.
Equivalent toreturnthunk-ptr
(bound-entity
,std::forward<Args>(args)...);.
Contents |
args | - | rest parameters to pass to the storedthunk-ptr |
thunk-ptr
(bound-entity
,std::forward<Args>(args)...).
Propagates the exception thrown by the underlying function call.
This section is incomplete Reason: no example |
invokes the target (public member function of std::function<R(Args...)> )[edit] | |
calls the stored function (public member function of std::reference_wrapper<T> )[edit] |