KUMI
v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
◆
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
)
inline
constexpr
noexcept
Returns a callable object with
ts
bound as its leading arguments, reducing
c
arity.
Parameters
c
Callable object to be bound.
ts
Elements 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
.
kumi