carb::cpp17::invoke_r¶
Defined in carb/cpp17/Functional.h
-
template<typename
R
, typenameFunc
, typename ...TArgs
>
constexpr Rcarb::cpp17
::
invoke_r
(Func &&f, TArgs&&... args) noexcept(is_nothrow_invocable_r<R, Func, TArgs...>
::
value
)¶ Invoke the function with the given arguments with the explicit return type
R
. This follows the same rules as carb::cpp17::invoke().This is equivalent to the C++23
std::invoke_r
function. It lives here because people would expect aninvoke_r
function to live next to aninvoke
function.