fix doc example typo
[boost.git] / boost / fusion / container / list / detail / convert_impl.hpp
blobcfe7a1dfa4a38f0494778543eec39719d24fd571
1 /*=============================================================================
2 Copyright (c) 2001-2006 Joel de Guzman
3 Copyright (c) 2005-2006 Dan Marsden
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_CONVERT_IMPL_09232005_1215)
9 #define FUSION_CONVERT_IMPL_09232005_1215
11 #include <boost/fusion/container/list/cons.hpp>
12 #include <boost/fusion/container/list/detail/build_cons.hpp>
13 #include <boost/fusion/sequence/intrinsic/empty.hpp>
14 #include <boost/fusion/sequence/intrinsic/begin.hpp>
15 #include <boost/fusion/sequence/intrinsic/end.hpp>
17 namespace boost { namespace fusion
19 struct cons_tag;
21 namespace extension
23 template <typename T>
24 struct convert_impl;
26 template <>
27 struct convert_impl<cons_tag>
29 template <typename Sequence>
30 struct apply
32 typedef typename
33 detail::build_cons<
34 typename result_of::begin<Sequence>::type
35 , typename result_of::end<Sequence>::type
37 build_cons;
39 typedef typename build_cons::type type;
41 static type
42 call(Sequence& seq)
44 return build_cons::call(fusion::begin(seq), fusion::end(seq));
51 #endif