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 scalar_type

boost::compute::scalar_type

Synopsis

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

template<typename Vector> 
struct scalar_type {
};

Description

Meta-function returning the scalar type for a vector type.

For example,

scalar_type<float4_>::type == float


PrevUpHomeNext