invoke

namespace opentl {
    template <typename Fn, typename... Args>
    constexpr decltype(auto) invoke(Fn&& fn, Args&&... args);
}

Invokes a callable with arguments.

Template Parameters

Name Description
Fn The function type.
Args The argument types.

Parameters

Name Description
fn The callable to invoke.
args The arguments to pass to the callable.

Return Value

Returns the result of invoking the callable.