Namespaces
Variants

std::mem_fun_ref_t, std::mem_fun1_ref_t, std::const_mem_fun_ref_t, std::const_mem_fun1_ref_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_ref_t : public unary_function<T,S> {
public:
    explicit mem_fun_ref_t(S (T::*p)());
    S operator()(T& p) const;
};
で定義 (1) (C++11で非推奨)
(C++17で削除)
template< class S, class T > 
class const_mem_fun_ref_t : public unary_function<T,S> {
public:
    explicit const_mem_fun_ref_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_ref_t : public binary_function<T,A,S> {
public:
    explicit mem_fun1_ref_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_ref_t : public binary_function<T,A,S> {
public:
    explicit const_mem_fun1_ref_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メンバ関数をラップします。

関連項目

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