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
)
inline
constexpr
noexcept
Invoke the Callable object c with a pack of arguments with return type R.
Template Parameters
R
the return type of the callable
Parameters
c
Callable object to be invoked
ts
elements 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
.
kumi