cpp/utility/functional

来自cppreference.com
< cpp
跳转到: 导航, 搜索

函数对象(Function Object)或者函子(Functor)是可以作为函数调用的对象。如果一个类定义了函数应用运算(), 那么这个类的对象就是函数对象。普通的函数和函数指针都可看作函数对象。

[编辑] The <functional> header file

binary_function
binary_negate
bind1st bind the first argument of the binary function
bind2nd bind the second argument of the binary function
binder1st
binder2nd
const_mem_fun1_ref_t
const_mem_fun1_t
const_mem_fun_ref_t
const_mem_fun_t
divides
equal_to whether the first argument is equal to the second argument
greater whether the first argument is greater than the second argument
greater_equal whether the first argument is greater than or equal to the second argument
less whether the first argument is less than the second argument
less_equal whether the first argument is less than or equal to the second argument
logical_and
logical_not
logical_or
mem_fun1_ref_t
mem_fun1_t
mem_fun construct a functor from a member function(pointer type)
mem_fun_ref construct a functor from a member function(reference type)
mem_fun_ref_t
mem_fun_t
minus
modulus
multiplies
negate
not1 negation of a unary predicate
not2 negation of a binary predicate
not_equal_to
plus
pointer_to_binary_function
pointer_to_unary_function
ptr_fun construct a functor from a function pointer
unary_function
unary_negate
个人工具
名字空间
操作
导航
工具箱
其他语言