...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::invoke
// In header: <boost/compute/utility/invoke.hpp> template<typename Function, class... Args> result_of< Function(Args...)>::type invoke(const Function & function, command_queue & queue, const Args &... args);