Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / preprocessor / array / to_tuple.hpp
blob0d8defa96f925190d57acdfaa5d427f6a9fd7863
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Edward Diener 2011. *
4 # * (C) Copyright Paul Mensonides 2011. *
5 # * Distributed under the Boost Software License, Version 1.0. (See *
6 # * accompanying file LICENSE_1_0.txt or copy at *
7 # * http://www.boost.org/LICENSE_1_0.txt) *
8 # * *
9 # ************************************************************************** */
11 # /* See http://www.boost.org for most recent version. */
13 # ifndef BOOST_PREPROCESSOR_ARRAY_TO_TUPLE_HPP
14 # define BOOST_PREPROCESSOR_ARRAY_TO_TUPLE_HPP
16 # include <boost/preprocessor/array/data.hpp>
17 # include <boost/preprocessor/array/size.hpp>
18 # include <boost/preprocessor/control/if.hpp>
20 # /* BOOST_PP_ARRAY_TO_TUPLE */
22 # define BOOST_PP_ARRAY_TO_TUPLE(array) \
23 BOOST_PP_IF \
24 ( \
25 BOOST_PP_ARRAY_SIZE(array), \
26 BOOST_PP_ARRAY_DATA, \
27 BOOST_PP_ARRAY_TO_TUPLE_EMPTY \
28 ) \
29 (array) \
30 /**/
31 # define BOOST_PP_ARRAY_TO_TUPLE_EMPTY(array)
33 # endif