Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:43

0001 
0002 #ifndef BOOST_MPL_MAP_AUX_BEGIN_END_IMPL_HPP_INCLUDED
0003 #define BOOST_MPL_MAP_AUX_BEGIN_END_IMPL_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2003-2004
0006 // Copyright David Abrahams 2003-2004
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. 
0009 // (See accompanying file LICENSE_1_0.txt or copy at 
0010 // http://www.boost.org/LICENSE_1_0.txt)
0011 //
0012 // See http://www.boost.org/libs/mpl for documentation.
0013 
0014 // $Id$
0015 // $Date$
0016 // $Revision$
0017 
0018 #include <boost/mpl/begin_end_fwd.hpp>
0019 #include <boost/mpl/next_prior.hpp>
0020 #include <boost/mpl/map/aux_/iterator.hpp>
0021 
0022 namespace boost { namespace mpl {
0023 
0024 template<>
0025 struct begin_impl< aux::map_tag >
0026 {
0027     template< typename Map > struct apply
0028     {
0029         typedef typename next< typename Map::order >::type max_order_;
0030         typedef m_iter<
0031               Map
0032             , next_order<Map,1,max_order_::value>::value
0033             , max_order_::value
0034             > type;
0035     };
0036 };
0037 
0038 template<>
0039 struct end_impl< aux::map_tag >
0040 {
0041     template< typename Map > struct apply
0042     {
0043         typedef typename next< typename Map::order >::type max_order_;
0044         typedef m_iter< Map,max_order_::value,max_order_::value > type;
0045     };
0046 };
0047 
0048 }}
0049 
0050 #endif // BOOST_MPL_MAP_AUX_BEGIN_END_IMPL_HPP_INCLUDED