Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:06:35

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Edward Diener 2011.                                    *
0004 #  *     (C) Copyright Paul Mensonides 2011.                                  *
0005 #  *     Distributed under the Boost Software License, Version 1.0. (See      *
0006 #  *     accompanying file LICENSE_1_0.txt or copy at                         *
0007 #  *     http://www.boost.org/LICENSE_1_0.txt)                                *
0008 #  *                                                                          *
0009 #  ************************************************************************** */
0010 #
0011 # /* Revised by Edward Diener (2020) */
0012 #
0013 # /* See http://www.boost.org for most recent version. */
0014 #
0015 # ifndef BOOST_PREPROCESSOR_VARIADIC_SIZE_HPP
0016 # define BOOST_PREPROCESSOR_VARIADIC_SIZE_HPP
0017 #
0018 # include <boost/preprocessor/cat.hpp>
0019 # include <boost/preprocessor/config/config.hpp>
0020 # include <boost/preprocessor/control/iif.hpp>
0021 # include <boost/preprocessor/facilities/check_empty.hpp>
0022 #
0023 # /* BOOST_PP_VARIADIC_SIZE */
0024 #
0025 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
0026 #
0027 #    if BOOST_PP_VARIADIC_HAS_OPT()
0028 #       if BOOST_PP_VARIADICS_MSVC
0029 #           define BOOST_PP_VARIADIC_SIZE_NOT_EMPTY(...) BOOST_PP_CAT(BOOST_PP_VARIADIC_SIZE_I(__VA_ARGS__, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,),)
0030 #       else
0031 #           define BOOST_PP_VARIADIC_SIZE_NOT_EMPTY(...) BOOST_PP_VARIADIC_SIZE_I(__VA_ARGS__, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,)
0032 #       endif
0033 #       define BOOST_PP_VARIADIC_SIZE_EMPTY(...) 0
0034 #       define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_IIF(BOOST_PP_CHECK_EMPTY(__VA_ARGS__),BOOST_PP_VARIADIC_SIZE_EMPTY,BOOST_PP_VARIADIC_SIZE_NOT_EMPTY)(__VA_ARGS__)
0035 #    elif BOOST_PP_VARIADICS_MSVC
0036 #       define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_CAT(BOOST_PP_VARIADIC_SIZE_I(__VA_ARGS__, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,),)
0037 #    else
0038 #       define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_VARIADIC_SIZE_I(__VA_ARGS__, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,)
0039 #    endif
0040 #    define BOOST_PP_VARIADIC_SIZE_I(e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16, e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31, e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46, e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61, e62, e63, size, ...) size
0041 #
0042 # else
0043 #
0044 #    if BOOST_PP_VARIADIC_HAS_OPT()
0045 #       define BOOST_PP_VARIADIC_SIZE_EMPTY(...) 0
0046 #       define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_IIF(BOOST_PP_CHECK_EMPTY(__VA_ARGS__),BOOST_PP_VARIADIC_SIZE_EMPTY,BOOST_PP_VARIADIC_DO_SIZE)(__VA_ARGS__)
0047 #    else
0048 #       define BOOST_PP_VARIADIC_SIZE(...) BOOST_PP_VARIADIC_DO_SIZE(__VA_ARGS__)
0049 #    endif
0050 #
0051 # include <boost/preprocessor/config/limits.hpp>
0052 #
0053 # if BOOST_PP_LIMIT_VARIADIC == 64
0054 # include <boost/preprocessor/variadic/limits/size_64.hpp>
0055 # elif BOOST_PP_LIMIT_VARIADIC == 128
0056 # include <boost/preprocessor/variadic/limits/size_128.hpp>
0057 # elif BOOST_PP_LIMIT_VARIADIC == 256
0058 # include <boost/preprocessor/variadic/limits/size_256.hpp>
0059 # else
0060 # error Incorrect value for the BOOST_PP_LIMIT_TUPLE limit
0061 # endif
0062 #
0063 # endif
0064 #
0065 # endif