epoc32/include/stdapis/boost/mpl/next_prior.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
williamr@4
     2
#ifndef BOOST_MPL_NEXT_PRIOR_HPP_INCLUDED
williamr@4
     3
#define BOOST_MPL_NEXT_PRIOR_HPP_INCLUDED
williamr@2
     4
williamr@4
     5
// Copyright Aleksey Gurtovoy 2000-2004
williamr@4
     6
//
williamr@4
     7
// Distributed under the Boost Software License, Version 1.0. 
williamr@4
     8
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@4
     9
// http://www.boost.org/LICENSE_1_0.txt)
williamr@4
    10
//
williamr@4
    11
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    12
williamr@4
    13
// $Source: /cvsroot/boost/boost/boost/mpl/next_prior.hpp,v $
williamr@4
    14
// $Date: 2004/09/17 06:09:38 $
williamr@4
    15
// $Revision: 1.3 $
williamr@2
    16
williamr@4
    17
#include <boost/mpl/aux_/common_name_wknd.hpp>
williamr@4
    18
#include <boost/mpl/aux_/na_spec.hpp>
williamr@4
    19
#include <boost/mpl/aux_/lambda_support.hpp>
williamr@2
    20
williamr@4
    21
namespace boost { namespace mpl {
williamr@2
    22
williamr@4
    23
BOOST_MPL_AUX_COMMON_NAME_WKND(next)
williamr@4
    24
BOOST_MPL_AUX_COMMON_NAME_WKND(prior)
williamr@2
    25
williamr@4
    26
template<
williamr@4
    27
      typename BOOST_MPL_AUX_NA_PARAM(T)
williamr@4
    28
    >
williamr@4
    29
struct next
williamr@4
    30
{
williamr@4
    31
    typedef typename T::next type;
williamr@4
    32
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,next,(T))
williamr@4
    33
};
williamr@2
    34
williamr@4
    35
template<
williamr@4
    36
      typename BOOST_MPL_AUX_NA_PARAM(T)
williamr@4
    37
    >
williamr@4
    38
struct prior
williamr@4
    39
{
williamr@4
    40
    typedef typename T::prior type;
williamr@4
    41
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,prior,(T))
williamr@4
    42
};
williamr@2
    43
williamr@4
    44
BOOST_MPL_AUX_NA_SPEC(1, next)
williamr@4
    45
BOOST_MPL_AUX_NA_SPEC(1, prior)
williamr@2
    46
williamr@4
    47
}}
williamr@2
    48
williamr@4
    49
#endif // BOOST_MPL_NEXT_PRIOR_HPP_INCLUDED