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 for the latest Boost documentation.
PrevUpHomeNext

Struct template as

boost::compute::as

Synopsis

// In header: <boost/compute/functional/as.hpp>

template<typename T> 
struct as {
  // types
  typedef T result_type;
};

Description

The as function converts its argument to type T (similar to reinterpret_cast<T>).

See Also:

convert<T>


PrevUpHomeNext