boost::compute::scalar_type
// In header: <boost/compute/type_traits/scalar_type.hpp> template<typename Vector> struct scalar_type { };
Meta-function returning the scalar type for a vector type.
For example,
scalar_type<float4_>::type == float