Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 10:02:13

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 # /* See http://www.boost.org for most recent version. */
0012 #
0013 # ifndef BOOST_PREPROCESSOR_TUPLE_TO_ARRAY_HPP
0014 # define BOOST_PREPROCESSOR_TUPLE_TO_ARRAY_HPP
0015 #
0016 # include <boost/preprocessor/cat.hpp>
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/control/if.hpp>
0019 # include <boost/preprocessor/facilities/overload.hpp>
0020 # include <boost/preprocessor/tuple/size.hpp>
0021 # include <boost/preprocessor/variadic/size.hpp>
0022 # include <boost/preprocessor/variadic/has_opt.hpp>
0023 #
0024 # /* BOOST_PP_TUPLE_TO_ARRAY */
0025 #
0026 # if BOOST_PP_VARIADICS_MSVC
0027 #     define BOOST_PP_TUPLE_TO_ARRAY(...) BOOST_PP_TUPLE_TO_ARRAY_I(BOOST_PP_OVERLOAD(BOOST_PP_TUPLE_TO_ARRAY_, __VA_ARGS__), (__VA_ARGS__))
0028 #     define BOOST_PP_TUPLE_TO_ARRAY_I(m, args) BOOST_PP_TUPLE_TO_ARRAY_II(m, args)
0029 #     define BOOST_PP_TUPLE_TO_ARRAY_II(m, args) BOOST_PP_CAT(m ## args,)
0030 #     define BOOST_PP_TUPLE_TO_ARRAY_1(tuple) (BOOST_PP_TUPLE_SIZE(tuple), tuple)
0031 # else
0032 #     define BOOST_PP_TUPLE_TO_ARRAY(...) BOOST_PP_OVERLOAD(BOOST_PP_TUPLE_TO_ARRAY_, __VA_ARGS__)(__VA_ARGS__)
0033 #     if BOOST_PP_VARIADIC_HAS_OPT()
0034 #         define BOOST_PP_TUPLE_TO_ARRAY_1(tuple) BOOST_PP_TUPLE_TO_ARRAY_1_SIZE(BOOST_PP_VARIADIC_SIZE tuple, tuple)
0035 #         define BOOST_PP_TUPLE_TO_ARRAY_1_SIZE(size,tuple) (BOOST_PP_IF(size,size,1), tuple)
0036 #     else
0037 #         define BOOST_PP_TUPLE_TO_ARRAY_1(tuple) (BOOST_PP_VARIADIC_SIZE tuple, tuple)
0038 #     endif
0039 # endif
0040 # define BOOST_PP_TUPLE_TO_ARRAY_2(size, tuple) (size, tuple)
0041 #
0042 # endif