std::function_ref::operator()
來自 cppreference.com
| R operator()( Args... args ) const noexcept(/*noex*/); |
(C++26 起) | |
呼叫儲存的 thunk-ptr,將 bound-entity 作為其第一個引數,其餘引數為 args。operator() 的 /*noex*/ 部分與 std::function_ref 的模板引數的相同。
等效於 return thunk-ptr(bound-entity, std::forward<Args>(args)...);。
目錄 |
[編輯] 引數
| args | - | 傳遞給儲存的 thunk-ptr 的其餘引數 |
[編輯] 返回值
thunk-ptr(bound-entity, std::forward<Args>(args)...).
[編輯] 異常
傳播底層函式呼叫所丟擲的異常。
[編輯] 示例
| 本節不完整 原因:無示例 |
[編輯] 參閱
| 呼叫目標 ( std::function<R(Args...)> 的公共成員函式) | |
| 呼叫儲存的函式 ( std::reference_wrapper<T> 的公共成員函式) |