1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #if !defined(BOOST_VMD_SEQ_TO_LIST_HPP)
- #define BOOST_VMD_SEQ_TO_LIST_HPP
- #include <boost/vmd/detail/setup.hpp>
- #if BOOST_PP_VARIADICS
- #include <boost/preprocessor/control/iif.hpp>
- #include <boost/preprocessor/seq/to_list.hpp>
- #include <boost/vmd/is_empty.hpp>
- #if BOOST_VMD_MSVC
- #define BOOST_VMD_SEQ_TO_LIST(seq) \
- BOOST_PP_IIF \
- ( \
- BOOST_VMD_IS_EMPTY(seq), \
- BOOST_VMD_SEQ_TO_LIST_PE, \
- BOOST_VMD_SEQ_TO_LIST_NPE \
- ) \
- (seq) \
- #define BOOST_VMD_SEQ_TO_LIST_PE(seq) BOOST_PP_NIL
- #define BOOST_VMD_SEQ_TO_LIST_NPE(seq) BOOST_PP_SEQ_TO_LIST(seq)
- #else
- #define BOOST_VMD_SEQ_TO_LIST(seq) \
- BOOST_PP_IIF \
- ( \
- BOOST_VMD_IS_EMPTY(seq), \
- BOOST_VMD_IDENTITY(BOOST_PP_NIL), \
- BOOST_PP_SEQ_TO_LIST \
- ) \
- (seq) \
- #endif
- #endif
- #endif
|