std::mem_fun_ref_t, std::mem_fun1_ref_t, std::const_mem_fun_ref_t, std::const_mem_fun1_ref_t
来自 cppreference.cn
< cpp | utility | functional
定义于头文件 <functional> |
||
template< class S, class T > class mem_fun_ref_t : public unary_function<T,S> { |
(1) | (deprecated in C++11) (removed in C++17) |
template< class S, class T > class const_mem_fun_ref_t : public unary_function<T,S> { |
(2) | (deprecated in C++11) (removed in C++17) |
template< class S, class T, class A > class mem_fun1_ref_t : public binary_function<T,A,S> { |
(3) | (deprecated in C++11) (removed in C++17) |
template< class S, class T, class A > class const_mem_fun1_ref_t : public binary_function<T,A,S> { |
(4) | (deprecated in C++11) (removed in C++17) |
围绕成员函数指针的包装器。要调用其成员函数的类实例作为引用传递给 operator()。
1) 包装一个没有参数的非 const 成员函数。
2) 包装一个没有参数的 const 成员函数。
3) 包装一个带有一个参数的非 const 成员函数。
4) 包装一个带有一个参数的 const 成员函数。
[编辑] 参见
(在 C++11 中已弃用)(在 C++17 中已移除) |
从指向成员函数的指针创建包装器,可使用对象引用调用 (函数模板) |
(在 C++11 中已弃用)(在 C++17 中已移除) |
指向无参数或一元成员函数的指针的包装器,可使用对象指针调用 (类模板) |