...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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