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