example-bind.cpp | 234 explicit bound_functor(const F& f, const BoundArgs&... bound_args) 235 : f(f), bound_args(bound_args...) { } template<typename... Args> 238 tuple<BoundArgs...> bound_args; member in class:bound_functor 242 inline bound_functor<F, BoundArgs...> bind(const F& f, const BoundArgs&... bound_args) { 243 return bound_functor<F, BoundArgs...>(f, bound_args...); 320 typename F::result_type apply_functor(F& f, tuple<BoundArgs...>& bound_args, 323 return f(mu(get<Indexes>(bound_args), args)...); 329 return apply_functor(f, bound_args, indexes(), tie(args...));
|