9template <
typename F,
typename... Args>
10constexpr auto bind(F&& f, Args&&... args) {
11 return [&](
auto&&... rest) ->
decltype(
auto) {
12 return f(std::forward<Args>(args)...,
13 std::forward<
decltype(rest)>(rest)...);
Definition: algorithm.h:6
constexpr auto bind(F &&f, Args &&... args)
Binds first arguments of f (either all or only partially).
Definition: bind.h:10