SysTutorials

Linux Manual Pages › Section 3

stdexperimentalrangesinvoke(3)

std::experimental::ranges::invoke - std::experimental::ranges::invoke

Synopsis

Defined in header<experimental / ranges / functional>
    template <class F, class... Args>
    (ranges TS)
        std::result_of_t<F && (Args && ...)> invoke(F &&f, Args &&...args);
Invoke the Callable object f with the parameters args, and return the result, as if by return INVOKE(std::forward<F>(f), std::forward<Args>(args)...);
, where INVOKE(f, t1, t2, ..., tN)
is defined as follows:

Parameters

f - Callable object to be invoked args - arguments to pass to f

See also

invoke invokes any Callable object with given arguments         (function template) (C++17)