std:: pointer_to_binary_function
From cppreference.net
<
cpp
|
utility
|
functional
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function objects
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
template
<
class
Arg1,
|
(C++11で非推奨)
(C++17で削除) |
|
std::pointer_to_binary_function
は、二項関数をラップする関数オブジェクトです。
目次 |
メンバー関数
|
(コンストラクタ)
|
指定された関数で新しい
pointer_to_binary_function
オブジェクトを構築する
(公開メンバ関数) |
|
operator()
|
格納された関数を呼び出す
(公開メンバ関数) |
std::pointer_to_binary_function:: pointer_to_binary_function
|
explicit
pointer_to_binary_function
(
Result
(
*
f
)
(
Arg1,Arg2
)
)
;
|
||
pointer_to_binary_function
関数オブジェクトを、格納する関数
f
で構築します。
パラメータ
| f | - | 格納する関数へのポインタ |
std::pointer_to_binary_function:: operator()
|
Result operator
(
)
(
Arg1 x1, Arg2 x2
)
const
;
|
||
格納された関数を呼び出します。
パラメータ
| x1, x2 | - | 関数に渡す引数 |
戻り値
呼び出された関数から返される値。
関連項目
|
(C++11で非推奨)
(C++17で削除)
|
単項関数ポインタのアダプタ互換ラッパー
(クラステンプレート) |
|
(C++11で非推奨)
(C++17で削除)
|
関数ポインタからアダプタ互換の関数オブジェクトラッパーを作成する
(関数テンプレート) |