PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/fusion/container/map/detail/end_impl.hpp

http://hadesmem.googlecode.com/
C++ Header | 43 lines | 30 code | 6 blank | 7 comment | 0 complexity | 7973cb5a968c24d45443731c819387c0 MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2006 Joel de Guzman
 3    Copyright (c) 2009 Christopher Schmidt
 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
 9#ifndef BOOST_FUSION_CONTAINER_MAP_DETAIL_END_IMPL_HPP
10#define BOOST_FUSION_CONTAINER_MAP_DETAIL_END_IMPL_HPP
11
12#include <boost/fusion/iterator/basic_iterator.hpp>
13
14namespace boost { namespace fusion { namespace extension
15{
16    template <typename>
17    struct end_impl;
18
19    template <>
20    struct end_impl<map_tag>
21    {
22        template <typename Seq>
23        struct apply
24        {
25            typedef
26                basic_iterator<
27                    map_iterator_tag
28                  , typename Seq::category
29                  , Seq
30                  , Seq::size::value
31                >
32            type;
33
34            static type
35            call(Seq& seq)
36            {
37                return type(seq,0);
38            }
39        };
40    };
41}}}
42
43#endif