KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
kumi::bind_front

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

Functions

template<typename C, typename... Ts>
requires (std::is_move_constructible_v<std::decay_t<C>> && (std::is_move_constructible_v<std::decay_t<Ts>> && ...))
constexpr auto kumi::bind_front (C &&c, Ts &&... ts) noexcept(std::is_nothrow_move_constructible_v< std::decay_t< C > > &&(std::is_nothrow_move_constructible_v< std::decay_t< Ts > > &&...))

Detailed Description

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

Function Documentation

◆ bind_front()

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_front ( C && c,
Ts &&... ts )
inlineconstexprnoexcept
Parameters
cCallable object to be bound.
tsElements to be bound as the leading arguments of c.
Returns
A callable object of lower arity invoking c with ts prefilled at the front.
Note
Replaces std::bind_front to avoid depending on functional.