std::function_ref::operator()
ja.cppreference.net より
R operator()( Args... args ) const noexcept(/*noex*/);
|
(C++26 から) | |
格納されている thunk-ptr を、bound-entity を最初の引数、残りの引数 args を使って呼び出します。/*noex*/ の operator() の部分は、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>
の公開メンバ関数)
|