Namespaces
Variants

std::mem_fun_t, std::mem_fun1_t, std::const_mem_fun_t, std::const_mem_fun1_t

ja.cppreference.net より
 
 
ユーティリティライブラリ
言語サポート
型サポート (基本型、RTTI)
ライブラリ機能テストマクロ (C++20)
プログラムユーティリティ
可変引数関数
コルーチンサポート (C++20)
契約サポート (C++26)
三方比較
(C++20)
(C++20)(C++20)(C++20)    
(C++20)(C++20)(C++20)

汎用ユーティリティ
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)(C++20)(C++20)    
(C++20)
swap と 型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
共通語彙型
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
関数オブジェクト
関数呼び出し
(C++17)(C++23)
恒等関数オブジェクト
(C++20)
透過的演算子ラッパー
(C++14)
(C++14)
(C++14)
(C++14)  
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)

旧式のバインダとアダプタ
(C++17まで*)
(C++17まで*)
(C++17まで*)
(C++17まで*)  
(C++17まで*)
(C++17まで*)(C++17まで*)(C++17まで*)(C++17まで*)
(C++20まで*)
(C++20まで*)
(C++17まで*)(C++17まで*)
(C++17まで*)(C++17まで*)

(C++17まで*)
(C++17まで*)(C++17まで*)(C++17まで*)(C++17まで*)
(C++20まで*)
(C++20まで*)
 
ヘッダ <functional>
template< class S, class T > 
class mem_fun_t : public unary_function<T*,S> {
public:
    explicit mem_fun_t(S (T::*p)());
    S operator()(T* p) const;
};
で定義 (1) (C++11で非推奨)
(C++17で削除)
template< class S, class T > 
class const_mem_fun_t : public unary_function<const T*,S> {
public:
    explicit const_mem_fun_t(S (T::*p)() const);
    S operator()(const T* p) const;
};
(2) (C++11で非推奨)
(C++17で削除)
template< class S, class T, class A > 
class mem_fun1_t : public binary_function<T*,A,S> {
public:
    explicit mem_fun1_t(S (T::*p)(A));
    S operator()(T* p, A x) const;
};
(3) (C++11で非推奨)
(C++17で削除)
template< class S, class T, class A > 
class const_mem_fun1_t : public binary_function<const T*,A,S> {
public:
    explicit const_mem_fun1_t(S (T::*p)(A) const);
    S operator()(const T* p, A x) const;
};
(4) (C++11で非推奨)
(C++17で削除)

メンバ関数ポインタのラッパー。メンバ関数を呼び出すクラスインスタンスは、operator()へのポインタとして渡される。

1) 引数なしの非constメンバ関数をラップする。
2) 引数なしのconstメンバ関数をラップする。
3) 引数が1つの非constメンバ関数をラップする。
4) 引数が1つのconstメンバ関数をラップする。

関連項目

(deprecated in C++11) (removed in C++17)
オブジェクトへのポインタで呼び出し可能な、メンバ関数へのポインタからのラッパーを作成する
(関数テンプレート)
オブジェクトへの参照で呼び出し可能な、引数なしまたは単項メンバ関数へのポインタのラッパー
(クラステンプレート)