carb::cpp::invoke

Defined in carb/cpp/Functional.h

template<typename Func, typename ...TArgs>
constexpr invoke_result_t<Func, TArgs...> carb::cpp::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 as constexpr per the C++20 Standard.