epoc32/include/stdapis/boost/mpl/aux_/preprocessed/plain/greater.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/mpl/aux_/preprocessed/plain/greater.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/preprocessed/plain/greater.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,38 +1,92 @@
     1.4 -# /* Copyright (C) 2001
     1.5 -#  * Housemarque Oy
     1.6 -#  * http://www.housemarque.com
     1.7 -#  *
     1.8 -#  * Distributed under the Boost Software License, Version 1.0. (See
     1.9 -#  * accompanying file LICENSE_1_0.txt or copy at
    1.10 -#  * http://www.boost.org/LICENSE_1_0.txt)
    1.11 -#  */
    1.12 -#
    1.13 -# /* Revised by Paul Mensonides (2002) */
    1.14 -#
    1.15 -# /* See http://www.boost.org for most recent version. */
    1.16 -#
    1.17 -# ifndef BOOST_PREPROCESSOR_COMPARISON_GREATER_HPP
    1.18 -# define BOOST_PREPROCESSOR_COMPARISON_GREATER_HPP
    1.19 -#
    1.20 -# include <boost/preprocessor/comparison/less.hpp>
    1.21 -# include <boost/preprocessor/config/config.hpp>
    1.22 -#
    1.23 -# /* BOOST_PP_GREATER */
    1.24 -#
    1.25 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.26 -#    define BOOST_PP_GREATER(x, y) BOOST_PP_LESS(y, x)
    1.27 -# else
    1.28 -#    define BOOST_PP_GREATER(x, y) BOOST_PP_GREATER_I(x, y)
    1.29 -#    define BOOST_PP_GREATER_I(x, y) BOOST_PP_LESS(y, x)
    1.30 -# endif
    1.31 -#
    1.32 -# /* BOOST_PP_GREATER_D */
    1.33 -#
    1.34 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.35 -#    define BOOST_PP_GREATER_D(d, x, y) BOOST_PP_LESS_D(d, y, x)
    1.36 -# else
    1.37 -#    define BOOST_PP_GREATER_D(d, x, y) BOOST_PP_GREATER_D_I(d, x, y)
    1.38 -#    define BOOST_PP_GREATER_D_I(d, x, y) BOOST_PP_LESS_D(d, y, x)
    1.39 -# endif
    1.40 -#
    1.41 -# endif
    1.42 +
    1.43 +// Copyright Aleksey Gurtovoy 2000-2004
    1.44 +//
    1.45 +// Distributed under the Boost Software License, Version 1.0. 
    1.46 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.47 +// http://www.boost.org/LICENSE_1_0.txt)
    1.48 +//
    1.49 +
    1.50 +// Preprocessed version of "boost/mpl/greater.hpp" header
    1.51 +// -- DO NOT modify by hand!
    1.52 +
    1.53 +namespace boost { namespace mpl {
    1.54 +
    1.55 +template<
    1.56 +      typename Tag1
    1.57 +    , typename Tag2
    1.58 +    >
    1.59 +struct greater_impl
    1.60 +    : if_c<
    1.61 +          ( BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag1)
    1.62 +              > BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag2)
    1.63 +            )
    1.64 +
    1.65 +        , aux::cast2nd_impl< greater_impl< Tag1,Tag1 >,Tag1, Tag2 >
    1.66 +        , aux::cast1st_impl< greater_impl< Tag2,Tag2 >,Tag1, Tag2 >
    1.67 +        >::type
    1.68 +{
    1.69 +};
    1.70 +
    1.71 +/// for Digital Mars C++/compilers with no CTPS/TTP support
    1.72 +template<> struct greater_impl< na,na >
    1.73 +{
    1.74 +    template< typename U1, typename U2 > struct apply
    1.75 +    {
    1.76 +        typedef apply type;
    1.77 +        BOOST_STATIC_CONSTANT(int, value  = 0);
    1.78 +    };
    1.79 +};
    1.80 +
    1.81 +template< typename Tag > struct greater_impl< na,Tag >
    1.82 +{
    1.83 +    template< typename U1, typename U2 > struct apply
    1.84 +    {
    1.85 +        typedef apply type;
    1.86 +        BOOST_STATIC_CONSTANT(int, value  = 0);
    1.87 +    };
    1.88 +};
    1.89 +
    1.90 +template< typename Tag > struct greater_impl< Tag,na >
    1.91 +{
    1.92 +    template< typename U1, typename U2 > struct apply
    1.93 +    {
    1.94 +        typedef apply type;
    1.95 +        BOOST_STATIC_CONSTANT(int, value  = 0);
    1.96 +    };
    1.97 +};
    1.98 +
    1.99 +template< typename T > struct greater_tag
   1.100 +{
   1.101 +    typedef typename T::tag type;
   1.102 +};
   1.103 +
   1.104 +template<
   1.105 +      typename BOOST_MPL_AUX_NA_PARAM(N1)
   1.106 +    , typename BOOST_MPL_AUX_NA_PARAM(N2)
   1.107 +    >
   1.108 +struct greater
   1.109 +
   1.110 +    : greater_impl<
   1.111 +          typename greater_tag<N1>::type
   1.112 +        , typename greater_tag<N2>::type
   1.113 +        >::template apply< N1,N2 >::type
   1.114 +{
   1.115 +};
   1.116 +
   1.117 +BOOST_MPL_AUX_NA_SPEC2(2, 2, greater)
   1.118 +
   1.119 +}}
   1.120 +
   1.121 +namespace boost { namespace mpl {
   1.122 +
   1.123 +template<>
   1.124 +struct greater_impl< integral_c_tag,integral_c_tag >
   1.125 +{
   1.126 +    template< typename N1, typename N2 > struct apply
   1.127 +
   1.128 +        : bool_< ( BOOST_MPL_AUX_VALUE_WKND(N1)::value > BOOST_MPL_AUX_VALUE_WKND(N2)::value ) >
   1.129 +    {
   1.130 +    };
   1.131 +};
   1.132 +
   1.133 +}}