carb::cpp17::invoke¶
Defined in carb/cpp17/Functional.h
-
template<typename
Func
, typename ...TArgs
>
constexpr invoke_result_t<Func, TArgs...>carb::cpp17
::
invoke
(Func &&f, TArgs&&... args) noexcept(is_nothrow_invocable<Func, TArgs...>
::
value
)¶ Invoke the function f with the given args pack.
This is equivalent to the C++20
std::invoke
function. It was originally added in C++17, but is marked asconstexpr
per the C++20 Standard.