std::function_ref::operator()
From cppreference.com
< C++ | Utility | Functional | function ref
| 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...)>のpublicメンバ関数) | |
| 保存された関数を呼び出す ( std::reference_wrapper<T>のpublicメンバ関数) |