KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches

◆ bind_back()

template<typename C, typename... Ts>
requires (std::is_move_constructible_v<std::decay_t<C>> && (std::is_move_constructible_v<std::decay_t<Ts>> && ...))
auto kumi::bind_back ( C && c,
Ts &&... ts )
inlineconstexprnoexcept

Returns a callable object with ts bound as its trailing arguments, reducing c arity.

Parameters
cCallable object to be bound.
tsElements to be bound as the trailing arguments of c.
Returns
A callable object of lower arity invoking c with ts prefilled at the back.
Note
Replaces std::bind_back to avoid depending on functional.