1
/*=============================================================================
2
Copyright (c) 2001-2006 Joel de Guzman
4
Distributed under the Boost Software License, Version 1.0. (See accompanying
5
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
==============================================================================*/
7
#if !defined(FUSION_BEGIN_04052005_1132)
8
#define FUSION_BEGIN_04052005_1132
10
#include <boost/fusion/support/tag_of.hpp>
12
namespace boost { namespace fusion
15
struct sequence_facade_tag; // iterator facade tag
16
struct boost_tuple_tag; // boost::tuples::tuple tag
17
struct array_tag; // boost::array tag
18
struct mpl_sequence_tag; // mpl sequence tag
19
struct std_pair_tag; // std::pair tag
23
template <typename Tag>
26
template <typename Sequence>
31
struct begin_impl<sequence_facade_tag>
33
template <typename Sequence>
34
struct apply : Sequence::template begin<Sequence> {};
38
struct begin_impl<boost_tuple_tag>;
41
struct begin_impl<array_tag>;
44
struct begin_impl<mpl_sequence_tag>;
47
struct begin_impl<std_pair_tag>;
52
template <typename Sequence>
54
: extension::begin_impl<typename detail::tag_of<Sequence>::type>::
55
template apply<Sequence>
59
template <typename Sequence>
60
inline typename result_of::begin<Sequence>::type const
63
return result_of::begin<Sequence>::call(seq);
66
template <typename Sequence>
67
inline typename result_of::begin<Sequence const>::type const
68
begin(Sequence const& seq)
70
return result_of::begin<Sequence const>::call(seq);
1
/*=============================================================================
2
Copyright (c) 2001-2006 Joel de Guzman
4
Distributed under the Boost Software License, Version 1.0. (See accompanying
5
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
==============================================================================*/
7
#if !defined(FUSION_BEGIN_04052005_1132)
8
#define FUSION_BEGIN_04052005_1132
10
#include <boost/fusion/support/tag_of.hpp>
12
namespace boost { namespace fusion
15
struct sequence_facade_tag; // iterator facade tag
16
struct boost_tuple_tag; // boost::tuples::tuple tag
17
struct array_tag; // boost::array tag
18
struct mpl_sequence_tag; // mpl sequence tag
19
struct std_pair_tag; // std::pair tag
23
template <typename Tag>
26
template <typename Sequence>
31
struct begin_impl<sequence_facade_tag>
33
template <typename Sequence>
34
struct apply : Sequence::template begin<Sequence> {};
38
struct begin_impl<boost_tuple_tag>;
41
struct begin_impl<array_tag>;
44
struct begin_impl<mpl_sequence_tag>;
47
struct begin_impl<std_pair_tag>;
52
template <typename Sequence>
54
: extension::begin_impl<typename detail::tag_of<Sequence>::type>::
55
template apply<Sequence>
59
template <typename Sequence>
60
inline typename result_of::begin<Sequence>::type const
63
return result_of::begin<Sequence>::call(seq);
66
template <typename Sequence>
67
inline typename result_of::begin<Sequence const>::type const
68
begin(Sequence const& seq)
70
return result_of::begin<Sequence const>::call(seq);