]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/compute/include/boost/compute/type_traits/is_vector_type.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / compute / include / boost / compute / type_traits / is_vector_type.hpp
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
3 //
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
7 //
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
10
11 #ifndef BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP
12 #define BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP
13
14 #include <boost/mpl/bool.hpp>
15
16 #include <boost/compute/type_traits/vector_size.hpp>
17
18 namespace boost {
19 namespace compute {
20
21 /// Meta-function returning \c true if \p T is a vector type.
22 ///
23 /// For example,
24 /// \code
25 /// is_vector_type<int>::value == false
26 /// is_vector_type<float4_>::value == true
27 /// \endcode
28 ///
29 /// \see make_vector_type, vector_size
30 template<class T>
31 struct is_vector_type : boost::mpl::bool_<vector_size<T>::value != 1>
32 {
33 };
34
35 } // end compute namespace
36 } // end boost namespace
37
38 #endif // BOOST_COMPUTE_TYPE_TRAITS_IS_VECTOR_TYPE_HPP