epoc32/include/stdapis/boost/mpl/begin_end.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_BEGIN_END_HPP_INCLUDED
williamr@4
     3
#define BOOST_MPL_BEGIN_END_HPP_INCLUDED
williamr@2
     4
williamr@2
     5
// Copyright Aleksey Gurtovoy 2000-2004
williamr@2
     6
//
williamr@2
     7
// Distributed under the Boost Software License, Version 1.0. 
williamr@2
     8
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@2
     9
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    10
//
williamr@2
    11
// See http://www.boost.org/libs/mpl for documentation.
williamr@2
    12
williamr@4
    13
// $Source: /cvsroot/boost/boost/boost/mpl/begin_end.hpp,v $
williamr@4
    14
// $Date: 2004/09/02 15:40:41 $
williamr@2
    15
// $Revision: 1.4 $
williamr@2
    16
williamr@4
    17
#include <boost/mpl/begin_end_fwd.hpp>
williamr@4
    18
#include <boost/mpl/aux_/begin_end_impl.hpp>
williamr@4
    19
#include <boost/mpl/sequence_tag.hpp>
williamr@4
    20
#include <boost/mpl/aux_/na_spec.hpp>
williamr@4
    21
#include <boost/mpl/aux_/lambda_support.hpp>
williamr@2
    22
williamr@2
    23
namespace boost { namespace mpl {
williamr@2
    24
williamr@4
    25
// agurt, 13/sep/02: switched from inheritance to typedef; MSVC is more
williamr@4
    26
// happy this way (less ETI-related errors), and it doesn't affect 
williamr@4
    27
// anything else
williamr@4
    28
template<
williamr@4
    29
      typename BOOST_MPL_AUX_NA_PARAM(Sequence)
williamr@4
    30
    >
williamr@4
    31
struct begin
williamr@2
    32
{
williamr@4
    33
    typedef typename sequence_tag<Sequence>::type tag_;
williamr@4
    34
    typedef typename begin_impl< tag_ >
williamr@4
    35
        ::template apply< Sequence >::type type;
williamr@4
    36
williamr@4
    37
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,begin,(Sequence))
williamr@2
    38
};
williamr@2
    39
williamr@4
    40
template<
williamr@4
    41
      typename BOOST_MPL_AUX_NA_PARAM(Sequence)
williamr@4
    42
    >
williamr@4
    43
struct end
williamr@2
    44
{
williamr@4
    45
    typedef typename sequence_tag<Sequence>::type tag_;
williamr@4
    46
    typedef typename end_impl< tag_ >
williamr@4
    47
        ::template apply< Sequence >::type type;
williamr@4
    48
williamr@4
    49
    BOOST_MPL_AUX_LAMBDA_SUPPORT(1,end,(Sequence))
williamr@2
    50
};
williamr@2
    51
williamr@4
    52
BOOST_MPL_AUX_NA_SPEC(1, begin)
williamr@4
    53
BOOST_MPL_AUX_NA_SPEC(1, end)
williamr@4
    54
williamr@2
    55
}}
williamr@2
    56
williamr@4
    57
#endif // BOOST_MPL_BEGIN_END_HPP_INCLUDED