std::mem_fun_t, std::mem_fun1_t, std::const_mem_fun_t, std::const_mem_fun1_t
From cppreference.com
< cpp | utility | functional
| ヘッダ <functional> で定義 |
||
| template< class S, class T > class mem_fun_t : public unary_function<T*,S> { |
(1) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T > class const_mem_fun_t : public unary_function<const T*,S> { |
(2) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T, class A > class mem_fun1_t : public binary_function<T*,A,S> { |
(3) | (C++11で非推奨) (C++17で削除) |
| template< class S, class T, class A > class const_mem_fun1_t : public binary_function<const 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で削除) |
オブジェクトへの参照で呼び出し可能な、引数なしまたは単項のメンバ関数へのポインタ用ラッパー (クラステンプレート) |