Files
boost_fusion/include/boost/fusion/container/map/detail/begin_impl.hpp
T

43 lines
1.1 KiB
C++
Raw Normal View History

2007-10-21 00:52:09 +00:00
/*=============================================================================
2011-09-16 05:30:23 +00:00
Copyright (c) 2001-2011 Joel de Guzman
2009-10-25 22:59:54 +00:00
Copyright (c) 2009 Christopher Schmidt
2007-10-21 00:52:09 +00:00
2009-10-25 22:59:54 +00:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
2007-10-21 00:52:09 +00:00
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
2009-10-25 22:59:54 +00:00
#ifndef BOOST_FUSION_CONTAINER_MAP_DETAIL_BEGIN_IMPL_HPP
#define BOOST_FUSION_CONTAINER_MAP_DETAIL_BEGIN_IMPL_HPP
2007-10-21 00:52:09 +00:00
2009-10-25 22:59:54 +00:00
#include <boost/fusion/iterator/basic_iterator.hpp>
namespace boost { namespace fusion { namespace extension
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
template <typename>
struct begin_impl;
2007-10-21 00:52:09 +00:00
2009-10-25 22:59:54 +00:00
template <>
struct begin_impl<map_tag>
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
template <typename Seq>
struct apply
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
typedef
basic_iterator<
map_iterator_tag
, typename Seq::category
, Seq
, 0
>
type;
static type
call(Seq& seq)
2007-10-21 00:52:09 +00:00
{
2009-10-25 22:59:54 +00:00
return type(seq,0);
}
2007-10-21 00:52:09 +00:00
};
2009-10-25 22:59:54 +00:00
};
}}}
2007-10-21 00:52:09 +00:00
#endif