File indexing completed on 2025-01-18 09:30:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
0012 #define BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP
0013
0014 #include <boost/compute/detail/is_contiguous_iterator.hpp>
0015
0016 #include <QVector>
0017
0018 namespace boost {
0019 namespace compute {
0020 namespace detail {
0021
0022 template<class Iterator>
0023 struct _is_contiguous_iterator<
0024 Iterator,
0025 typename boost::enable_if<
0026 typename boost::is_same<
0027 Iterator,
0028 typename QVector<typename Iterator::value_type>::iterator
0029 >::type
0030 >::type
0031 > : public boost::true_type {};
0032
0033 template<class Iterator>
0034 struct _is_contiguous_iterator<
0035 Iterator,
0036 typename boost::enable_if<
0037 typename boost::is_same<
0038 Iterator,
0039 typename QVector<typename Iterator::value_type>::const_iterator
0040 >::type
0041 >::type
0042 > : public boost::true_type {};
0043
0044 }
0045 }
0046 }
0047
0048 #endif