Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:48:02

0001 
0002 #ifndef BOOST_MPL_BEGIN_END_HPP_INCLUDED
0003 #define BOOST_MPL_BEGIN_END_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2000-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/begin_end_fwd.hpp>
0018 #include <boost/mpl/aux_/begin_end_impl.hpp>
0019 #include <boost/mpl/sequence_tag.hpp>
0020 #include <boost/mpl/aux_/na_spec.hpp>
0021 #include <boost/mpl/aux_/lambda_support.hpp>
0022 
0023 namespace boost { namespace mpl {
0024 
0025 // agurt, 13/sep/02: switched from inheritance to typedef; MSVC is more
0026 // happy this way (less ETI-related errors), and it doesn't affect 
0027 // anything else
0028 template<
0029       typename BOOST_MPL_AUX_NA_PARAM(Sequence)
0030     >
0031 struct begin
0032 {
0033     typedef typename sequence_tag<Sequence>::type tag_;
0034     typedef typename begin_impl< tag_ >
0035         ::template apply< Sequence >::type type;
0036 
0037     BOOST_MPL_AUX_LAMBDA_SUPPORT(1,begin,(Sequence))
0038 };
0039 
0040 template<
0041       typename BOOST_MPL_AUX_NA_PARAM(Sequence)
0042     >
0043 struct end
0044 {
0045     typedef typename sequence_tag<Sequence>::type tag_;
0046     typedef typename end_impl< tag_ >
0047         ::template apply< Sequence >::type type;
0048 
0049     BOOST_MPL_AUX_LAMBDA_SUPPORT(1,end,(Sequence))
0050 };
0051 
0052 BOOST_MPL_AUX_NA_SPEC(1, begin)
0053 BOOST_MPL_AUX_NA_SPEC(1, end)
0054 
0055 }}
0056 
0057 #endif // BOOST_MPL_BEGIN_END_HPP_INCLUDED