kumi v3.1.0
Exquisite Epidote
 
Loading...
Searching...
No Matches

◆ invoke()

template<typename C , typename... Ts>
requires (std::is_invocable<C, Ts...>::value)
constexpr decltype(auto) kumi::invoke ( C &&  c,
Ts &&...  ts 
)
inlineconstexprnoexcept

Invoke the Callable object c with a pack of arguments.

Parameters
cCallable object to be invoked
tselements to be used as arguments to c
Returns
The value returned by c.
Note
Replaces std::invoke to avoid depending on functional.