std::mem_fun_ref_t, std::mem_fun1_ref_t, std::const_mem_fun_ref_t, std::const_mem_fun1_ref_t
From cppreference.com
< cpp | utility | functional
| ヘッダ <functional> で定義 |
||
| template< class S, class T > class mem_fun_ref_t : public unary_function<T,S> { |
(1) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T > class const_mem_fun_ref_t : public unary_function<T,S> { |
(2) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T, class A > class mem_fun1_ref_t : public binary_function<T,A,S> { |
(3) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T, class A > class const_mem_fun1_ref_t : public binary_function<T,A,S> { |
(4) | (C++11で非推奨) (C++17で削除) |
クラスインスタンスへの参照をoperator()に渡す、メンバー関数ポインタのラッパーです。
1) パラメータなしの非constメンバー関数をラップします。
2) パラメータなしのconstメンバー関数をラップします。
3) 1つのパラメータを持つ非constメンバー関数をラップします。
4) 1つのパラメータを持つconstメンバー関数をラップします。
[編集] 関連項目
| (C++11で非推奨)(C++17で削除) |
オブジェクトへの参照で呼び出し可能な、メンバ関数へのポインタからラッパーを生成する (関数テンプレート) |
| (C++11で非推奨)(C++17で削除) |
オブジェクトへのポインタで呼び出し可能な、引数なしまたは単項のメンバ関数へのポインタ用ラッパー (クラステンプレート) |