]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/compute/interop/qt/qvector.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / compute / interop / qt / qvector.hpp
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013-2014 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_INTEROP_QT_QVECTOR_HPP
12 #define BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
13
14 #include <boost/compute/detail/is_contiguous_iterator.hpp>
15
16 #include <QVector>
17
18 namespace boost {
19 namespace compute {
20 namespace detail {
21
22 template<class Iterator>
23 struct _is_contiguous_iterator<
24 Iterator,
25 typename boost::enable_if<
26 typename boost::is_same<
27 Iterator,
28 typename QVector<typename Iterator::value_type>::iterator
29 >::type
30 >::type
31 > : public boost::true_type {};
32
33 template<class Iterator>
34 struct _is_contiguous_iterator<
35 Iterator,
36 typename boost::enable_if<
37 typename boost::is_same<
38 Iterator,
39 typename QVector<typename Iterator::value_type>::const_iterator
40 >::type
41 >::type
42 > : public boost::true_type {};
43
44 } // end detail namespace
45 } // end compute namespace
46 } // end boost namespace
47
48 #endif // BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP