]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/view/reverse_view/detail/next_impl.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / view / reverse_view / detail / next_impl.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_NEXT_IMPL_07202005_0856)
8 #define FUSION_NEXT_IMPL_07202005_0856
9
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/iterator/next.hpp>
12 #include <boost/fusion/iterator/prior.hpp>
13
14 namespace boost { namespace fusion
15 {
16 struct reverse_view_iterator_tag;
17
18 template <typename Iterator>
19 struct reverse_view_iterator;
20
21 namespace extension
22 {
23 template <>
24 struct next_impl<reverse_view_iterator_tag>
25 {
26 template <typename Iterator>
27 struct apply
28 {
29 typedef typename Iterator::first_type first_type;
30 typedef typename prior_impl<typename first_type::fusion_tag>::
31 template apply<first_type>
32 wrapped;
33
34 typedef reverse_view_iterator<typename wrapped::type> type;
35
36 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
37 static type
38 call(Iterator const& i)
39 {
40 return type(wrapped::call(i.first));
41 }
42 };
43 };
44 }
45 }}
46
47 #endif
48
49