c++11 bind and apply?
问题 std::bind is sometimes described as "partial application". Any reasons why when all parameters of a function are bound, the function itself isn't applied? For example, the following code prints nothing. #include <functional> #include <iostream> using namespace std; using namespace std::placeholders; void f(int a,string b) {cout << a << b << endl;}; int main() { bind(bind(f,1,_1),"Hi!"); return 0; } Is there a way to write a bind variant that can apply the function when all parameters are