williamr@2: williamr@4: #ifndef BOOST_MPL_BEGIN_END_HPP_INCLUDED williamr@4: #define BOOST_MPL_BEGIN_END_HPP_INCLUDED williamr@2: williamr@2: // Copyright Aleksey Gurtovoy 2000-2004 williamr@2: // williamr@2: // Distributed under the Boost Software License, Version 1.0. williamr@2: // (See accompanying file LICENSE_1_0.txt or copy at williamr@2: // http://www.boost.org/LICENSE_1_0.txt) williamr@2: // williamr@2: // See http://www.boost.org/libs/mpl for documentation. williamr@2: williamr@4: // $Source: /cvsroot/boost/boost/boost/mpl/begin_end.hpp,v $ williamr@4: // $Date: 2004/09/02 15:40:41 $ williamr@2: // $Revision: 1.4 $ williamr@2: williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@2: williamr@2: namespace boost { namespace mpl { williamr@2: williamr@4: // agurt, 13/sep/02: switched from inheritance to typedef; MSVC is more williamr@4: // happy this way (less ETI-related errors), and it doesn't affect williamr@4: // anything else williamr@4: template< williamr@4: typename BOOST_MPL_AUX_NA_PARAM(Sequence) williamr@4: > williamr@4: struct begin williamr@2: { williamr@4: typedef typename sequence_tag::type tag_; williamr@4: typedef typename begin_impl< tag_ > williamr@4: ::template apply< Sequence >::type type; williamr@4: williamr@4: BOOST_MPL_AUX_LAMBDA_SUPPORT(1,begin,(Sequence)) williamr@2: }; williamr@2: williamr@4: template< williamr@4: typename BOOST_MPL_AUX_NA_PARAM(Sequence) williamr@4: > williamr@4: struct end williamr@2: { williamr@4: typedef typename sequence_tag::type tag_; williamr@4: typedef typename end_impl< tag_ > williamr@4: ::template apply< Sequence >::type type; williamr@4: williamr@4: BOOST_MPL_AUX_LAMBDA_SUPPORT(1,end,(Sequence)) williamr@2: }; williamr@2: williamr@4: BOOST_MPL_AUX_NA_SPEC(1, begin) williamr@4: BOOST_MPL_AUX_NA_SPEC(1, end) williamr@4: williamr@2: }} williamr@2: williamr@4: #endif // BOOST_MPL_BEGIN_END_HPP_INCLUDED