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 make_vector_type

boost::compute::make_vector_type

Synopsis

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

template<typename Scalar, size_t Size> 
struct make_vector_type {
};

Description

Meta-function which returns a vector type for Scalar with Size.

For example,

make_vector_type<int, 2>::type == int2_
make_vector_type<float, 4>::type == float4_

See Also:

is_vector_type


PrevUpHomeNext