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

◆ invoke_r()

template<typename R , typename C , typename... Ts>
requires (std::is_invocable_r<R, C, Ts...>::value)
constexpr R kumi::invoke_r ( C &&  c,
Ts &&...  ts 
)
inlineconstexprnoexcept

Invoke the Callable object c with a pack of arguments with return type R.

Template Parameters
Rthe return type of the callable
Parameters
cCallable object to be invoked
tselements to be used as arguments to c
Returns
The value returned by c with type R.
Note
Replaces std::invoke_r to avoid depending on functional.