epoc32/include/stdapis/boost/mpl/set/aux_/item.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
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@4
     1
williamr@4
     2
#ifndef BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED
williamr@4
     3
#define BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED
williamr@4
     4
williamr@4
     5
// Copyright Aleksey Gurtovoy 2003-2004
williamr@4
     6
// Copyright David Abrahams 2003-2004
williamr@4
     7
//
williamr@4
     8
// Distributed under the Boost Software License, Version 1.0. 
williamr@4
     9
// (See accompanying file LICENSE_1_0.txt or copy at 
williamr@4
    10
// http://www.boost.org/LICENSE_1_0.txt)
williamr@4
    11
//
williamr@4
    12
// See http://www.boost.org/libs/mpl for documentation.
williamr@4
    13
williamr@4
    14
// $Source: /cvsroot/boost/boost/boost/mpl/set/aux_/item.hpp,v $
williamr@4
    15
// $Date: 2005/06/18 22:03:09 $
williamr@4
    16
// $Revision: 1.7 $
williamr@4
    17
williamr@4
    18
#include <boost/mpl/long.hpp>
williamr@4
    19
#include <boost/mpl/void.hpp>
williamr@4
    20
#include <boost/mpl/next.hpp>
williamr@4
    21
#include <boost/mpl/prior.hpp>
williamr@4
    22
#include <boost/mpl/set/aux_/set0.hpp>
williamr@4
    23
#include <boost/mpl/aux_/type_wrapper.hpp>
williamr@4
    24
#include <boost/mpl/aux_/config/arrays.hpp>
williamr@4
    25
williamr@4
    26
namespace boost { namespace mpl {
williamr@4
    27
williamr@4
    28
template< typename T, typename Base >
williamr@4
    29
struct s_item
williamr@4
    30
    : Base
williamr@4
    31
{
williamr@4
    32
    typedef s_item<T,Base> item_;
williamr@4
    33
    typedef void_       last_masked_;
williamr@4
    34
    typedef Base        next_;
williamr@4
    35
    typedef T           item_type_;
williamr@4
    36
    typedef item_type_  type;
williamr@4
    37
    typedef Base        base;
williamr@4
    38
    
williamr@4
    39
    typedef typename next< typename Base::size >::type  size;
williamr@4
    40
    typedef typename next< typename Base::order >::type order;
williamr@4
    41
williamr@4
    42
#if defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES)
williamr@4
    43
    typedef typename aux::weighted_tag<BOOST_MPL_AUX_MSVC_VALUE_WKND(order)::value>::type order_tag_;
williamr@4
    44
#else
williamr@4
    45
    typedef char (&order_tag_)[BOOST_MPL_AUX_MSVC_VALUE_WKND(order)::value];
williamr@4
    46
#endif
williamr@4
    47
williamr@4
    48
    BOOST_MPL_AUX_SET_OVERLOAD( order_tag_, ORDER_BY_KEY, s_item, aux::type_wrapper<T>* );
williamr@4
    49
    BOOST_MPL_AUX_SET_OVERLOAD( aux::no_tag, IS_MASKED, s_item, aux::type_wrapper<T>* );
williamr@4
    50
};
williamr@4
    51
williamr@4
    52
williamr@4
    53
template< typename T, typename Base >
williamr@4
    54
struct s_mask
williamr@4
    55
    : Base
williamr@4
    56
{
williamr@4
    57
    typedef s_mask<T,Base> item_;
williamr@4
    58
    typedef T       last_masked_;
williamr@4
    59
    typedef void_   item_type_;
williamr@4
    60
    typedef Base    base;
williamr@4
    61
    typedef typename prior< typename Base::size >::type  size;
williamr@4
    62
williamr@4
    63
    BOOST_MPL_AUX_SET_OVERLOAD( aux::yes_tag, IS_MASKED, s_mask, aux::type_wrapper<T>* );
williamr@4
    64
};
williamr@4
    65
williamr@4
    66
williamr@4
    67
template< typename T, typename Base >
williamr@4
    68
struct s_unmask
williamr@4
    69
    : Base
williamr@4
    70
{
williamr@4
    71
    typedef s_unmask<T,Base> item_;
williamr@4
    72
    typedef void_   last_masked_;
williamr@4
    73
    typedef T       item_type_;
williamr@4
    74
    typedef Base    base;
williamr@4
    75
    typedef typename next< typename Base::size >::type  size;
williamr@4
    76
williamr@4
    77
    BOOST_MPL_AUX_SET_OVERLOAD( aux::no_tag, IS_MASKED, s_unmask, aux::type_wrapper<T>* );
williamr@4
    78
};
williamr@4
    79
williamr@4
    80
}}
williamr@4
    81
williamr@4
    82
#endif // BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED