首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::pointer_to_binary_function

template< class Arg1, class Arg2, class Result > class pointer_to_binary_function : public std::binary_function<Arg1, Arg2, Result>;

(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)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券