os/ossrv/ossrv_pub/boost_apis/boost/mpl/pair.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
sl@0
     2
#ifndef BOOST_MPL_PAIR_HPP_INCLUDED
sl@0
     3
#define BOOST_MPL_PAIR_HPP_INCLUDED
sl@0
     4
sl@0
     5
// Copyright Aleksey Gurtovoy 2001-2004
sl@0
     6
//
sl@0
     7
// Distributed under the Boost Software License, Version 1.0. 
sl@0
     8
// (See accompanying file LICENSE_1_0.txt or copy at 
sl@0
     9
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    10
//
sl@0
    11
// See http://www.boost.org/libs/mpl for documentation.
sl@0
    12
sl@0
    13
// $Source: /cvsroot/boost/boost/boost/mpl/pair.hpp,v $
sl@0
    14
// $Date: 2004/12/14 14:05:31 $
sl@0
    15
// $Revision: 1.5 $
sl@0
    16
sl@0
    17
#include <boost/mpl/aux_/msvc_eti_base.hpp>
sl@0
    18
#include <boost/mpl/aux_/na_spec.hpp>
sl@0
    19
#include <boost/mpl/aux_/lambda_support.hpp>
sl@0
    20
#include <boost/mpl/aux_/config/eti.hpp>
sl@0
    21
sl@0
    22
namespace boost { namespace mpl {
sl@0
    23
sl@0
    24
template<
sl@0
    25
      typename BOOST_MPL_AUX_NA_PARAM(T1)
sl@0
    26
    , typename BOOST_MPL_AUX_NA_PARAM(T2)
sl@0
    27
    >
sl@0
    28
struct pair
sl@0
    29
{
sl@0
    30
    typedef pair type;
sl@0
    31
    typedef T1 first;
sl@0
    32
    typedef T2 second;
sl@0
    33
sl@0
    34
    BOOST_MPL_AUX_LAMBDA_SUPPORT(2,pair,(T1,T2))
sl@0
    35
};
sl@0
    36
sl@0
    37
template<
sl@0
    38
      typename BOOST_MPL_AUX_NA_PARAM(P)
sl@0
    39
    >
sl@0
    40
struct first
sl@0
    41
{
sl@0
    42
#if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
sl@0
    43
    typedef typename P::first type;
sl@0
    44
#else
sl@0
    45
    typedef typename aux::msvc_eti_base<P>::first type;
sl@0
    46
#endif
sl@0
    47
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,first,(P))
sl@0
    48
};
sl@0
    49
sl@0
    50
template<
sl@0
    51
      typename BOOST_MPL_AUX_NA_PARAM(P)
sl@0
    52
    >
sl@0
    53
struct second
sl@0
    54
{
sl@0
    55
#if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
sl@0
    56
    typedef typename P::second type;
sl@0
    57
#else
sl@0
    58
    typedef typename aux::msvc_eti_base<P>::second type;
sl@0
    59
#endif
sl@0
    60
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,second,(P))
sl@0
    61
};
sl@0
    62
sl@0
    63
sl@0
    64
BOOST_MPL_AUX_NA_SPEC_NO_ETI(2, pair)
sl@0
    65
BOOST_MPL_AUX_NA_SPEC(1, first)
sl@0
    66
BOOST_MPL_AUX_NA_SPEC(1, second)
sl@0
    67
sl@0
    68
}}
sl@0
    69
sl@0
    70
#endif // BOOST_MPL_PAIR_HPP_INCLUDED