example-bind.cpp | 235 explicit bound_functor(const F& f, const BoundArgs&... bound_args) 236 : f(f), bound_args(bound_args...) { } template<typename... Args> 239 tuple<BoundArgs...> bound_args; member in class:bound_functor 243 inline bound_functor<F, BoundArgs...> bind(const F& f, const BoundArgs&... bound_args) { 244 return bound_functor<F, BoundArgs...>(f, bound_args...); 321 typename F::result_type apply_functor(F& f, tuple<BoundArgs...>& bound_args, 324 return f(mu(get<Indexes>(bound_args), args)...); 330 return apply_functor(f, bound_args, indexes(), tie(args...));
|