]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2011 Joel de Guzman | |
3 | Copyright (c) 2011 Eric Niebler | |
4 | ||
5 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | ==============================================================================*/ | |
8 | #if !defined(BOOST_FUSION_SINGLE_VIEW_END_IMPL_05052005_0332) | |
9 | #define BOOST_FUSION_SINGLE_VIEW_END_IMPL_05052005_0332 | |
10 | ||
11 | #include <boost/fusion/support/config.hpp> | |
12 | #include <boost/mpl/int.hpp> | |
13 | ||
14 | namespace boost { namespace fusion | |
15 | { | |
16 | struct single_view_tag; | |
17 | ||
18 | template <typename SingleView, typename Pos> | |
19 | struct single_view_iterator; | |
20 | ||
21 | namespace extension | |
22 | { | |
23 | template <typename Tag> | |
24 | struct end_impl; | |
25 | ||
26 | template <> | |
27 | struct end_impl<single_view_tag> | |
28 | { | |
29 | template <typename Sequence> | |
30 | struct apply | |
31 | { | |
32 | typedef single_view_iterator<Sequence, mpl::int_<1> > type; | |
33 | ||
34 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
35 | static type | |
36 | call(Sequence& seq) | |
37 | { | |
38 | return type(seq); | |
39 | } | |
40 | }; | |
41 | }; | |
42 | } | |
43 | }} | |
44 | ||
45 | #endif | |
46 | ||
47 |