]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/container/map/detail/cpp03/begin_impl.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / container / map / detail / cpp03 / begin_impl.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 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_BEGIN_IMPL_HPP
10 #define BOOST_FUSION_CONTAINER_MAP_DETAIL_BEGIN_IMPL_HPP
11
12 #include <boost/fusion/support/config.hpp>
13 #include <boost/fusion/iterator/basic_iterator.hpp>
14
15 namespace boost { namespace fusion { namespace extension
16 {
17 template <typename>
18 struct begin_impl;
19
20 template <>
21 struct begin_impl<map_tag>
22 {
23 template <typename Seq>
24 struct apply
25 {
26 typedef
27 basic_iterator<
28 map_iterator_tag
29 , typename Seq::category
30 , Seq
31 , 0
32 >
33 type;
34
35 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 static type
37 call(Seq& seq)
38 {
39 return type(seq,0);
40 }
41 };
42 };
43 }}}
44
45 #endif