std::bind a bound function
std::bind expressions, like their boost::bind predecessors, support a type of composition operation. Your expression for w is roughly equivalent to auto w=std::bind(some_fun, std::bind(&foo::bar<int>, x, std::placeholders::_1) ); Nesting binds in this manner is interpreted as Calculate the value of x.bar<int>(y) where y is the first parameter passed into the resulting functor. Pass that result into some_fun. … Read more