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 is_vector_type

boost::compute::is_vector_type

Synopsis

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

template<typename T> 
struct is_vector_type :
  public boost::mpl::bool_< vector_size< T >::value !=1 >
{
};

Description

Meta-function returning true if T is a vector type.

For example,

is_vector_type<int>::value == false
is_vector_type<float4_>::value == true

See Also:

make_vector_type, vector_size


PrevUpHomeNext