Skip to content

cppreference Utility library#Function objects

Function wrappers

NOTE: 关于wrapper,参见C-and-C++\Wrapper

paradigm explanation 章节
std::function(C++11) wraps callable object of any type with specified function call signature
(class template)
./std-function
mem_fn (C++11) OOP creates a function object out of a pointer to a member
(function template)

Partial function application

std::bind_front and std::bind provide support for partial function application, i.e. binding arguments to functions to produce new functions.

Operator function objects

NOTE: 参见STL-Functor

TODO

oopscenities C++11: std::function and std::bind