File indexing completed on 2025-01-18 09:53:38
0001
0002
0003
0004
0005
0006
0007 #if !defined(BOOST_VMD_SEQ_TO_LIST_HPP)
0008 #define BOOST_VMD_SEQ_TO_LIST_HPP
0009
0010 #include <boost/vmd/detail/setup.hpp>
0011
0012 #if BOOST_PP_VARIADICS
0013
0014 #include <boost/preprocessor/control/iif.hpp>
0015 #include <boost/preprocessor/seq/to_list.hpp>
0016
0017 #include <boost/vmd/is_empty.hpp>
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #if BOOST_VMD_MSVC
0039 #define BOOST_VMD_SEQ_TO_LIST(seq) \
0040 BOOST_PP_IIF \
0041 ( \
0042 BOOST_VMD_IS_EMPTY(seq), \
0043 BOOST_VMD_SEQ_TO_LIST_PE, \
0044 BOOST_VMD_SEQ_TO_LIST_NPE \
0045 ) \
0046 (seq) \
0047
0048 #define BOOST_VMD_SEQ_TO_LIST_PE(seq) BOOST_PP_NIL
0049
0050 #define BOOST_VMD_SEQ_TO_LIST_NPE(seq) BOOST_PP_SEQ_TO_LIST(seq)
0051
0052 #else
0053 #define BOOST_VMD_SEQ_TO_LIST(seq) \
0054 BOOST_PP_IIF \
0055 ( \
0056 BOOST_VMD_IS_EMPTY(seq), \
0057 BOOST_VMD_IDENTITY(BOOST_PP_NIL), \
0058 BOOST_PP_SEQ_TO_LIST \
0059 ) \
0060 (seq) \
0061
0062 #endif
0063
0064 #endif
0065 #endif