Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:38

0001 
0002 //  (C) Copyright Edward Diener 2015
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 
0007 #if !defined(BOOST_VMD_LIST_TO_SEQ_HPP)
0008 #define BOOST_VMD_LIST_TO_SEQ_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/list/to_seq.hpp>
0016 #include <boost/vmd/empty.hpp>
0017 #include <boost/vmd/is_empty_list.hpp>
0018 
0019 /*
0020 
0021   The succeeding comments in this file are in doxygen format.
0022 
0023 */
0024 
0025 /** \file
0026 */
0027 
0028 /** \def BOOST_VMD_LIST_TO_SEQ(list)
0029 
0030     \brief converts a list to a seq.
0031 
0032     list = list to be converted.
0033     
0034     If the list is an empty list (BOOST_PP_NIL) it is converted to an empty seq.
0035     Otherwise the list is converted to a seq with the same number of elements as the list.
0036 */
0037 
0038 #define BOOST_VMD_LIST_TO_SEQ(list) \
0039     BOOST_PP_IIF \
0040         ( \
0041         BOOST_VMD_IS_EMPTY_LIST(list), \
0042         BOOST_VMD_EMPTY, \
0043         BOOST_PP_LIST_TO_SEQ \
0044         ) \
0045     (list) \
0046 /**/
0047 
0048 #endif /* BOOST_PP_VARIADICS */
0049 #endif /* BOOST_VMD_LIST_TO_SEQ_HPP */