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