]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/compute/include/boost/compute/interop/qt/qvector.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / compute / include / boost / compute / interop / qt / qvector.hpp
CommitLineData
7c673cae
FG
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
18namespace boost {
19namespace compute {
20namespace detail {
21
22template<class Iterator>
23struct _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
33template<class Iterator>
34struct _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