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_END_IMPL_05042005_1142)
8#define FUSION_END_IMPL_05042005_1142
9
10#include <boost/fusion/support/config.hpp>
11#include <boost/fusion/container/vector/vector_iterator.hpp>
12
13namespace boost { namespace fusion
14{
15 struct vector_tag;
16
17 namespace extension
18 {
19 template <typename Tag>
20 struct end_impl;
21
22 template <>
23 struct end_impl<vector_tag>
24 {
25 template <typename Sequence>
26 struct apply
27 {
28 typedef typename Sequence::size size;
29 typedef vector_iterator<Sequence, size::value> type;
30
31 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
32 static type
33 call(Sequence& v)
34 {
35 return type(v);
36 }
37 };
38 };
39 }
40}}
41
42#endif
43