Chris@102
|
1 # /* **************************************************************************
|
Chris@102
|
2 # * *
|
Chris@102
|
3 # * (C) Copyright Edward Diener 2013.
|
Chris@102
|
4 # * Distributed under the Boost Software License, Version 1.0. (See
|
Chris@102
|
5 # * accompanying file LICENSE_1_0.txt or copy at
|
Chris@102
|
6 # * http://www.boost.org/LICENSE_1_0.txt)
|
Chris@102
|
7 # * *
|
Chris@102
|
8 # ************************************************************************** */
|
Chris@102
|
9 #
|
Chris@102
|
10 # /* See http://www.boost.org for most recent version. */
|
Chris@102
|
11 #
|
Chris@102
|
12 # ifndef BOOST_PREPROCESSOR_TUPLE_REPLACE_HPP
|
Chris@102
|
13 # define BOOST_PREPROCESSOR_TUPLE_REPLACE_HPP
|
Chris@102
|
14 #
|
Chris@102
|
15 # include <boost/preprocessor/config/config.hpp>
|
Chris@102
|
16 #
|
Chris@102
|
17 # if BOOST_PP_VARIADICS
|
Chris@102
|
18 #
|
Chris@102
|
19 # include <boost/preprocessor/array/replace.hpp>
|
Chris@102
|
20 # include <boost/preprocessor/array/to_tuple.hpp>
|
Chris@102
|
21 # include <boost/preprocessor/tuple/to_array.hpp>
|
Chris@102
|
22 #
|
Chris@102
|
23 # /* BOOST_PP_TUPLE_REPLACE */
|
Chris@102
|
24 #
|
Chris@102
|
25 # define BOOST_PP_TUPLE_REPLACE(tuple, i, elem) \
|
Chris@102
|
26 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_REPLACE(BOOST_PP_TUPLE_TO_ARRAY(tuple), i, elem)) \
|
Chris@102
|
27 /**/
|
Chris@102
|
28 #
|
Chris@102
|
29 # /* BOOST_PP_TUPLE_REPLACE_D */
|
Chris@102
|
30 #
|
Chris@102
|
31 # define BOOST_PP_TUPLE_REPLACE_D(d, tuple, i, elem) \
|
Chris@102
|
32 BOOST_PP_ARRAY_TO_TUPLE(BOOST_PP_ARRAY_REPLACE_D(d, BOOST_PP_TUPLE_TO_ARRAY(tuple), i, elem)) \
|
Chris@102
|
33 /**/
|
Chris@102
|
34 #
|
Chris@102
|
35 # endif // BOOST_PP_VARIADICS
|
Chris@102
|
36 #
|
Chris@102
|
37 # endif // BOOST_PREPROCESSOR_TUPLE_REPLACE_HPP
|