1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013-2014 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_INTEROP_QT_QVECTOR_HPP
12 #define BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
14 #include <boost/compute/detail/is_contiguous_iterator.hpp>
22 template<class Iterator>
23 struct _is_contiguous_iterator<
25 typename boost::enable_if<
26 typename boost::is_same<
28 typename QVector<typename Iterator::value_type>::iterator
31 > : public boost::true_type {};
33 template<class Iterator>
34 struct _is_contiguous_iterator<
36 typename boost::enable_if<
37 typename boost::is_same<
39 typename QVector<typename Iterator::value_type>::const_iterator
42 > : public boost::true_type {};
44 } // end detail namespace
45 } // end compute namespace
46 } // end boost namespace
48 #endif // BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP