epoc32/include/stdapis/boost/preprocessor/comparison/less.hpp
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
# /* Copyright (C) 2001
williamr@2
     2
#  * Housemarque Oy
williamr@2
     3
#  * http://www.housemarque.com
williamr@2
     4
#  *
williamr@2
     5
#  * Distributed under the Boost Software License, Version 1.0. (See
williamr@2
     6
#  * accompanying file LICENSE_1_0.txt or copy at
williamr@2
     7
#  * http://www.boost.org/LICENSE_1_0.txt)
williamr@2
     8
#  */
williamr@2
     9
#
williamr@2
    10
# /* Revised by Paul Mensonides (2002) */
williamr@2
    11
#
williamr@2
    12
# /* See http://www.boost.org for most recent version. */
williamr@2
    13
#
williamr@2
    14
# ifndef BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
williamr@2
    15
# define BOOST_PREPROCESSOR_COMPARISON_LESS_HPP
williamr@2
    16
#
williamr@2
    17
# include <boost/preprocessor/comparison/less_equal.hpp>
williamr@2
    18
# include <boost/preprocessor/comparison/not_equal.hpp>
williamr@2
    19
# include <boost/preprocessor/config/config.hpp>
williamr@2
    20
# include <boost/preprocessor/control/iif.hpp>
williamr@2
    21
# include <boost/preprocessor/logical/bitand.hpp>
williamr@2
    22
# include <boost/preprocessor/tuple/eat.hpp>
williamr@2
    23
#
williamr@2
    24
# /* BOOST_PP_LESS */
williamr@2
    25
#
williamr@2
    26
# if BOOST_PP_CONFIG_FLAGS() & (BOOST_PP_CONFIG_MWCC() | BOOST_PP_CONFIG_DMC())
williamr@2
    27
#    define BOOST_PP_LESS(x, y) BOOST_PP_BITAND(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL(x, y))
williamr@2
    28
# elif ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
williamr@2
    29
#    define BOOST_PP_LESS(x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL, 0 BOOST_PP_TUPLE_EAT_2)(x, y)
williamr@2
    30
# else
williamr@2
    31
#    define BOOST_PP_LESS(x, y) BOOST_PP_LESS_I(x, y)
williamr@2
    32
#    define BOOST_PP_LESS_I(x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL, 0 BOOST_PP_TUPLE_EAT_2)(x, y)
williamr@2
    33
# endif
williamr@2
    34
#
williamr@2
    35
# /* BOOST_PP_LESS_D */
williamr@2
    36
#
williamr@2
    37
# if BOOST_PP_CONFIG_FLAGS() & (BOOST_PP_CONFIG_MWCC() | BOOST_PP_CONFIG_DMC())
williamr@2
    38
#    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_BITAND(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D(d, x, y))
williamr@2
    39
# elif ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
williamr@2
    40
#    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y)
williamr@2
    41
# else
williamr@2
    42
#    define BOOST_PP_LESS_D(d, x, y) BOOST_PP_LESS_D_I(d, x, y)
williamr@2
    43
#    define BOOST_PP_LESS_D_I(d, x, y) BOOST_PP_IIF(BOOST_PP_NOT_EQUAL(x, y), BOOST_PP_LESS_EQUAL_D, 0 BOOST_PP_TUPLE_EAT_3)(d, x, y)
williamr@2
    44
# endif
williamr@2
    45
#
williamr@2
    46
# endif