1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/pair.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,70 @@
1.4 +
1.5 +#ifndef BOOST_MPL_PAIR_HPP_INCLUDED
1.6 +#define BOOST_MPL_PAIR_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2001-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/pair.hpp,v $
1.17 +// $Date: 2004/12/14 14:05:31 $
1.18 +// $Revision: 1.5 $
1.19 +
1.20 +#include <boost/mpl/aux_/msvc_eti_base.hpp>
1.21 +#include <boost/mpl/aux_/na_spec.hpp>
1.22 +#include <boost/mpl/aux_/lambda_support.hpp>
1.23 +#include <boost/mpl/aux_/config/eti.hpp>
1.24 +
1.25 +namespace boost { namespace mpl {
1.26 +
1.27 +template<
1.28 + typename BOOST_MPL_AUX_NA_PARAM(T1)
1.29 + , typename BOOST_MPL_AUX_NA_PARAM(T2)
1.30 + >
1.31 +struct pair
1.32 +{
1.33 + typedef pair type;
1.34 + typedef T1 first;
1.35 + typedef T2 second;
1.36 +
1.37 + BOOST_MPL_AUX_LAMBDA_SUPPORT(2,pair,(T1,T2))
1.38 +};
1.39 +
1.40 +template<
1.41 + typename BOOST_MPL_AUX_NA_PARAM(P)
1.42 + >
1.43 +struct first
1.44 +{
1.45 +#if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
1.46 + typedef typename P::first type;
1.47 +#else
1.48 + typedef typename aux::msvc_eti_base<P>::first type;
1.49 +#endif
1.50 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,first,(P))
1.51 +};
1.52 +
1.53 +template<
1.54 + typename BOOST_MPL_AUX_NA_PARAM(P)
1.55 + >
1.56 +struct second
1.57 +{
1.58 +#if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
1.59 + typedef typename P::second type;
1.60 +#else
1.61 + typedef typename aux::msvc_eti_base<P>::second type;
1.62 +#endif
1.63 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,second,(P))
1.64 +};
1.65 +
1.66 +
1.67 +BOOST_MPL_AUX_NA_SPEC_NO_ETI(2, pair)
1.68 +BOOST_MPL_AUX_NA_SPEC(1, first)
1.69 +BOOST_MPL_AUX_NA_SPEC(1, second)
1.70 +
1.71 +}}
1.72 +
1.73 +#endif // BOOST_MPL_PAIR_HPP_INCLUDED