Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template result_of

boost::compute::result_of

Synopsis

// In header: <boost/compute/type_traits/result_of.hpp>

template<typename Signature> 
struct result_of {
  // types
  typedef ::boost::tr1_result_of< Signature >::type type;
};

Description

Returns the result of Function when called with Args.

For example,

// int + int = int
result_of<plus(int, int)>::type == int


PrevUpHomeNext