PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/fusion/container/set/detail/begin_impl.hpp

http://hadesmem.googlecode.com/
C++ Header | 43 lines | 30 code | 6 blank | 7 comment | 0 complexity | 40f4c9a24ca70f33e97e0d7eceabaa10 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_SET_DETAIL_BEGIN_IMPL_HPP
10#define BOOST_FUSION_CONTAINER_SET_DETAIL_BEGIN_IMPL_HPP
11
12#include <boost/fusion/iterator/basic_iterator.hpp>
13
14namespace boost { namespace fusion { namespace extension
15{
16    template <typename>
17    struct begin_impl;
18
19    template <>
20    struct begin_impl<set_tag>
21    {
22        template <typename Seq>
23        struct apply
24        {
25            typedef
26                basic_iterator<
27                    set_iterator_tag
28                  , typename Seq::category
29                  , Seq
30                  , 0
31                >
32            type;
33
34            static type
35            call(Seq& seq)
36            {
37                return type(seq,0);
38            }
39        };
40    };
41}}}
42
43#endif