2 // (C) Copyright Edward Diener 2015
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 #if !defined(BOOST_VMD_TUPLE_TO_SEQ_HPP)
8 #define BOOST_VMD_TUPLE_TO_SEQ_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/preprocessor/control/iif.hpp>
15 #include <boost/preprocessor/tuple/to_seq.hpp>
16 #include <boost/vmd/empty.hpp>
17 #include <boost/vmd/is_empty.hpp>
21 The succeeding comments in this file are in doxygen format.
28 /** \def BOOST_VMD_TUPLE_TO_SEQ(tuple)
30 \brief converts a tuple to a seq.
32 tuple = tuple to be converted.
34 If the tuple is an empty tuple it is converted to an empty seq.
35 Otherwise the tuple is converted to a seq with the same number of elements as the tuple.
38 #define BOOST_VMD_TUPLE_TO_SEQ(tuple) \
41 BOOST_VMD_IS_EMPTY(tuple), \
43 BOOST_PP_TUPLE_TO_SEQ \
48 #endif /* BOOST_PP_VARIADICS */
49 #endif /* BOOST_VMD_TUPLE_TO_SEQ_HPP */