chsvlib
chsv helper source code

◆ invoke()

auto Chusov::invoke ( F &&  f,
ArgTypes &&...  args 
) -> decltype(Implementation::INVOKE(std::forward<F>(f), std::forward<ArgTypes>(args)...))
noexcept

Invokes a Callable object with a given set of arguments. Implements behaviour of the C++17 std::invoke function via C++11.

Template Parameters
Fis a type of the callable.
ArgTypesis a type of arguments forwarded to the callable.
Parameters
fthe callable.
argsthe arguments forwarded to the callable.