File indexing completed on 2025-01-18 09:49:58
0001 #
0002
0003
0004
0005
0006
0007
0008
0009
0010 #
0011 #
0012 #
0013 # ifndef BOOST_PREPROCESSOR_TUPLE_SIZE_HPP
0014 # define BOOST_PREPROCESSOR_TUPLE_SIZE_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/variadic/has_opt.hpp>
0020 # include <boost/preprocessor/variadic/size.hpp>
0021 #
0022 # if BOOST_PP_VARIADIC_HAS_OPT()
0023 # if BOOST_PP_VARIADICS_MSVC
0024 # define BOOST_PP_TUPLE_SIZE(tuple) BOOST_PP_TUPLE_SIZE_CHECK(BOOST_PP_CAT(BOOST_PP_VARIADIC_SIZE tuple,))
0025 # else
0026 # define BOOST_PP_TUPLE_SIZE(tuple) BOOST_PP_TUPLE_SIZE_CHECK(BOOST_PP_VARIADIC_SIZE tuple)
0027 # endif
0028 # define BOOST_PP_TUPLE_SIZE_CHECK(size) BOOST_PP_IF(size,size,1)
0029 # elif BOOST_PP_VARIADICS_MSVC
0030 # define BOOST_PP_TUPLE_SIZE(tuple) BOOST_PP_CAT(BOOST_PP_VARIADIC_SIZE tuple,)
0031 # else
0032 # define BOOST_PP_TUPLE_SIZE(tuple) BOOST_PP_VARIADIC_SIZE tuple
0033 # endif
0034 #
0035 # endif