std::mem_fun_ref_t, std::mem_fun1_ref_t, std::const_mem_fun_ref_t, std::const_mem_fun1_ref_t
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
旧绑定器与适配器 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
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()
。
参阅
(C++11
中弃用)(C++17
中移除)
|
从成员函数指针创建包装器,能以一个对象引用调用 (函数模板) |
(C++11
中弃用)(C++17
中移除)
|
指向零元或一元成员函数指针的包装器,可以一个对象指针调用 (类模板) |