fix doc example typo
[boost.git] / boost / fusion / container / list / detail / begin_impl.hpp
bloba22c9a3d7ff0e6b1cc5d5edab6d10a928ebcc53a
1 /*=============================================================================
2 Copyright (c) 2005 Joel de Guzman
3 Copyright (c) 2005 Eric Niebler
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(FUSION_BEGIN_IMPL_07172005_0824)
9 #define FUSION_BEGIN_IMPL_07172005_0824
11 #include <boost/mpl/if.hpp>
12 #include <boost/type_traits/is_const.hpp>
14 namespace boost { namespace fusion
16 struct nil;
18 struct cons_tag;
20 template <typename Car, typename Cdr>
21 struct cons;
23 template <typename Cons>
24 struct cons_iterator;
26 namespace extension
28 template <typename Tag>
29 struct begin_impl;
31 template <>
32 struct begin_impl<cons_tag>
34 template <typename Sequence>
35 struct apply
37 typedef cons_iterator<Sequence> type;
39 static type
40 call(Sequence& t)
42 return type(t);
49 #endif