Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-06 08:25:06

0001 # /* **************************************************************************
0002 #  *                                                                          *
0003 #  *     (C) Copyright Edward Diener 2013.
0004 #  *     Distributed under the Boost Software License, Version 1.0. (See
0005 #  *     accompanying file LICENSE_1_0.txt or copy at
0006 #  *     http://www.boost.org/LICENSE_1_0.txt)
0007 #  *                                                                          *
0008 #  ************************************************************************** */
0009 0010 ">#
0011 # /* See http://www.boost.org for most recent version. */
0012 0013 ">#
0014 # ifndef BOOST_PREPROCESSOR_TUPLE_POP_FRONT_HPP
0015 # define BOOST_PREPROCESSOR_TUPLE_POP_FRONT_HPP
0016 0017 ">#
0018 # include <boost/preprocessor/config/config.hpp>
0019 # include <boost/preprocessor/array/pop_front.hpp>
0020 # include <boost/preprocessor/array/to_tuple.hpp>
0021 # include <boost/preprocessor/comparison/greater.hpp>
0022 # include <boost/preprocessor/control/iif.hpp>
0023 # include <boost/preprocessor/tuple/size.hpp>
0024 # include <boost/preprocessor/tuple/to_array.hpp>
0025 0026 ">#
0027 0028 ">#
0029 # /* BOOST_PP_TUPLE_POP_FRONT */
0030 0031 ">#
0032 # define BOOST_PP_TUPLE_POP_FRONT(tuple) \
0033     BOOST_PP_IIF \
0034         ( \
0035         BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0036         BOOST_PP_TUPLE_POP_FRONT_EXEC, \
0037         BOOST_PP_TUPLE_POP_FRONT_RETURN \
0038         ) \
0039     (tuple) \
0040 /**/
0041 0042 ">#
0043 # define BOOST_PP_TUPLE_POP_FRONT_EXEC(tuple) \
0044     BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_FRONT(BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0045 /**/
0046 0047 ">#
0048 # define BOOST_PP_TUPLE_POP_FRONT_RETURN(tuple) tuple
0049 0050 ">#
0051 # /* BOOST_PP_TUPLE_POP_FRONT_Z */
0052 0053 ">#
0054 # define BOOST_PP_TUPLE_POP_FRONT_Z(z, tuple) \
0055     BOOST_PP_IIF \
0056         ( \
0057         BOOST_PP_GREATER(BOOST_PP_TUPLE_SIZE(tuple),1), \
0058         BOOST_PP_TUPLE_POP_FRONT_Z_EXEC, \
0059         BOOST_PP_TUPLE_POP_FRONT_Z_RETURN \
0060         ) \
0061     (z, tuple) \
0062 /**/
0063 0064 ">#
0065 # define BOOST_PP_TUPLE_POP_FRONT_Z_EXEC(z, tuple) \
0066     BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_POP_FRONT_Z(z, BOOST_PP_TUPLE_TO_ARRAY(tuple))) \
0067 /**/
0068 0069 ">#
0070 # define BOOST_PP_TUPLE_POP_FRONT_Z_RETURN(z, tuple) tuple
0071 0072 ">#
0073 # endif // BOOST_PREPROCESSOR_TUPLE_POP_FRONT_HPP