Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:01

0001 //---------------------------------------------------------------------------//
0002 // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
0007 //
0008 // See http://boostorg.github.com/compute for more information.
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 } // end detail namespace
0045 } // end compute namespace
0046 } // end boost namespace
0047 
0048 #endif // BOOST_COMPUTE_INTEROP_QT_QVECTOR_HPP