Tag: std::invoke

C++17 – std::apply() and std::invoke()

Written by on October 14, 2018 in C++, Programming with 0 Comments
C++17 – std::apply() and std::invoke()

Calling a function (or function object) dynamically, through a pointer known at runtime, is a common programming scenario. Almost all languages support this use case. Lisp, for example, has apply and funcall. When using apply, you can see that the arguments are passed via a separate list object. With funcall, however, the arguments are passed […]

Continue Reading