sl@0: sl@0: #ifndef BOOST_MPL_PAIR_HPP_INCLUDED sl@0: #define BOOST_MPL_PAIR_HPP_INCLUDED sl@0: sl@0: // Copyright Aleksey Gurtovoy 2001-2004 sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. sl@0: // (See accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // See http://www.boost.org/libs/mpl for documentation. sl@0: sl@0: // $Source: /cvsroot/boost/boost/boost/mpl/pair.hpp,v $ sl@0: // $Date: 2004/12/14 14:05:31 $ sl@0: // $Revision: 1.5 $ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: template< sl@0: typename BOOST_MPL_AUX_NA_PARAM(T1) sl@0: , typename BOOST_MPL_AUX_NA_PARAM(T2) sl@0: > sl@0: struct pair sl@0: { sl@0: typedef pair type; sl@0: typedef T1 first; sl@0: typedef T2 second; sl@0: sl@0: BOOST_MPL_AUX_LAMBDA_SUPPORT(2,pair,(T1,T2)) sl@0: }; sl@0: sl@0: template< sl@0: typename BOOST_MPL_AUX_NA_PARAM(P) sl@0: > sl@0: struct first sl@0: { sl@0: #if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG) sl@0: typedef typename P::first type; sl@0: #else sl@0: typedef typename aux::msvc_eti_base

::first type; sl@0: #endif sl@0: BOOST_MPL_AUX_LAMBDA_SUPPORT(1,first,(P)) sl@0: }; sl@0: sl@0: template< sl@0: typename BOOST_MPL_AUX_NA_PARAM(P) sl@0: > sl@0: struct second sl@0: { sl@0: #if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG) sl@0: typedef typename P::second type; sl@0: #else sl@0: typedef typename aux::msvc_eti_base

::second type; sl@0: #endif sl@0: BOOST_MPL_AUX_LAMBDA_SUPPORT(1,second,(P)) sl@0: }; sl@0: sl@0: sl@0: BOOST_MPL_AUX_NA_SPEC_NO_ETI(2, pair) sl@0: BOOST_MPL_AUX_NA_SPEC(1, first) sl@0: BOOST_MPL_AUX_NA_SPEC(1, second) sl@0: sl@0: }} sl@0: sl@0: #endif // BOOST_MPL_PAIR_HPP_INCLUDED