1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
11 #ifndef BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP
12 #define BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP
14 #include <boost/mpl/bool.hpp>
16 #include <boost/compute/type_traits/vector_size.hpp>
21 /// Meta-function returning \c true if \p T is a vector type.
25 /// is_vector_type<int>::value == false
26 /// is_vector_type<float4_>::value == true
29 /// \see make_vector_type, vector_size
31 struct is_vector_type : boost::mpl::bool_<vector_size<T>::value != 1>
35 } // end compute namespace
36 } // end boost namespace
38 #endif // BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP