fix doc example typo
[boost.git] / boost / fusion / container / vector / detail / end_impl.hpp
blobf33282dcb8ceeb420532a86403b072880223b41c
1 /*=============================================================================
2 Copyright (c) 2001-2006 Joel de Guzman
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
10 #include <boost/fusion/container/vector/vector_iterator.hpp>
12 namespace boost { namespace fusion
14 struct vector_tag;
16 namespace extension
18 template <typename Tag>
19 struct end_impl;
21 template <>
22 struct end_impl<vector_tag>
24 template <typename Sequence>
25 struct apply
27 typedef typename Sequence::size size;
28 typedef vector_iterator<Sequence, size::value> type;
30 static type
31 call(Sequence& v)
33 return type(v);
40 #endif