invoke#
Fully qualified name: carb::cpp::invoke
Defined in carb/cpp/Functional.h
-
template<typename Func, typename ...TArgs>
constexpr invoke_result_t<Func, TArgs...> carb::cpp::invoke(
) 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.