std::pointer_to_binary_function
STD::指针[医]到[医]二进制[医]功能
template< class Arg1, class Arg2, class Result > class pointer_to_binary_function : public std::binary_function | | (until C++17)(deprecated since C++11) |
---|
std::pointer_to_binary_function
函数对象,充当二进制函数的包装器。
成员函数
(constructor) | constructs a new pointer_to_binary_function object with the supplied function (public member function) |
---|---|
operator() | calls the stored function (public member function) |
STD::指针[医]到[医]二进制[医]功能:指针[医]到[医]二进制[医]功能
explicit pointer_to_binary_function( Result (*f)(Arg1,Arg2) | | |
---|
构造一个pointer_to_binary_function
具有存储函数的函数对象。f
...
参数
f | - | pointer to a function to store |
---|
STD::指针[医]到[医]二进制[医]功能:操作员%28%29
Result operator()( Arg1 x1, Arg2 x2 ) const; | | |
---|
调用存储函数。
参数
x1, x2 | - | arguments to pass to the function |
---|
返回值
被调用的函数返回的值。
另见
pointer_to_unary_function (until C++17) | adaptor-compatible wrapper for a pointer to unary function (class template) |
---|---|
ptr_fun (until C++17) | creates an adaptor-compatible function object wrapper from a pointer to function (function template) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cpPreference.com/w/cpp/实用程序/Functional/指针[医]到[医]二进制[医]功能