boost::compute::result_of
// In header: <boost/compute/type_traits/result_of.hpp> template<typename Signature> struct result_of { // types typedef ::boost::tr1_result_of< Signature >::type type; };
Returns the result of Function when called with Args.
Function
Args
For example,
// int + int = int result_of<plus(int, int)>::type == int