1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/begin_end.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,57 @@
1.4 +
1.5 +#ifndef BOOST_MPL_BEGIN_END_HPP_INCLUDED
1.6 +#define BOOST_MPL_BEGIN_END_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2000-2004
1.9 +//
1.10 +// Distributed under the Boost Software License, Version 1.0.
1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
1.12 +// http://www.boost.org/LICENSE_1_0.txt)
1.13 +//
1.14 +// See http://www.boost.org/libs/mpl for documentation.
1.15 +
1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/begin_end.hpp,v $
1.17 +// $Date: 2004/09/02 15:40:41 $
1.18 +// $Revision: 1.4 $
1.19 +
1.20 +#include <boost/mpl/begin_end_fwd.hpp>
1.21 +#include <boost/mpl/aux_/begin_end_impl.hpp>
1.22 +#include <boost/mpl/sequence_tag.hpp>
1.23 +#include <boost/mpl/aux_/na_spec.hpp>
1.24 +#include <boost/mpl/aux_/lambda_support.hpp>
1.25 +
1.26 +namespace boost { namespace mpl {
1.27 +
1.28 +// agurt, 13/sep/02: switched from inheritance to typedef; MSVC is more
1.29 +// happy this way (less ETI-related errors), and it doesn't affect
1.30 +// anything else
1.31 +template<
1.32 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.33 + >
1.34 +struct begin
1.35 +{
1.36 + typedef typename sequence_tag<Sequence>::type tag_;
1.37 + typedef typename begin_impl< tag_ >
1.38 + ::template apply< Sequence >::type type;
1.39 +
1.40 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,begin,(Sequence))
1.41 +};
1.42 +
1.43 +template<
1.44 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.45 + >
1.46 +struct end
1.47 +{
1.48 + typedef typename sequence_tag<Sequence>::type tag_;
1.49 + typedef typename end_impl< tag_ >
1.50 + ::template apply< Sequence >::type type;
1.51 +
1.52 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,end,(Sequence))
1.53 +};
1.54 +
1.55 +BOOST_MPL_AUX_NA_SPEC(1, begin)
1.56 +BOOST_MPL_AUX_NA_SPEC(1, end)
1.57 +
1.58 +}}
1.59 +
1.60 +#endif // BOOST_MPL_BEGIN_END_HPP_INCLUDED