]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/preprocessor/array/detail/get_data.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / preprocessor / array / detail / get_data.hpp
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Edward Diener 2014. *
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_ARRAY_DETAIL_GET_DATA_HPP
13 # define BOOST_PREPROCESSOR_ARRAY_DETAIL_GET_DATA_HPP
14 #
15 # include <boost/preprocessor/config/config.hpp>
16 # include <boost/preprocessor/tuple/rem.hpp>
17 # include <boost/preprocessor/control/if.hpp>
18 # include <boost/preprocessor/control/iif.hpp>
19 # include <boost/preprocessor/facilities/is_1.hpp>
20 #
21 # /* BOOST_PP_ARRAY_DETAIL_GET_DATA */
22 #
23 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE(size, data)
24
25 # if BOOST_PP_VARIADICS && !(BOOST_PP_VARIADICS_MSVC && _MSC_VER <= 1400)
26 # if BOOST_PP_VARIADICS_MSVC
27 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT(size, data) BOOST_PP_TUPLE_REM(size) data
28 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT(size, data) BOOST_PP_TUPLE_REM_CAT(size) data
29 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) \
30 BOOST_PP_IIF \
31 ( \
32 BOOST_PP_IS_1(size), \
33 BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_CAT, \
34 BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY_VC_DEFAULT \
35 ) \
36 (size,data) \
37 /**/
38 # else
39 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
40 # endif
41 # else
42 # define BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY(size, data) BOOST_PP_TUPLE_REM(size) data
43 # endif
44
45 # define BOOST_PP_ARRAY_DETAIL_GET_DATA(size, data) \
46 BOOST_PP_IF \
47 ( \
48 size, \
49 BOOST_PP_ARRAY_DETAIL_GET_DATA_ANY, \
50 BOOST_PP_ARRAY_DETAIL_GET_DATA_NONE \
51 ) \
52 (size,data) \
53 /**/
54 #
55 # endif /* BOOST_PREPROCESSOR_ARRAY_DETAIL_GET_DATA_HPP */