]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/array/elem.hpp
9944823e6993119fad6322616f1571085e3ada11
[lyx.git] / boost / boost / preprocessor / array / elem.hpp
1 # /* **************************************************************************
2 #  *                                                                          *
3 #  *     (C) Copyright Paul Mensonides 2002.  Permission to copy, use,        *
4 #  *     modify, sell, and distribute this software is granted provided       *
5 #  *     this copyright notice appears in all copies.  This software is       *
6 #  *     provided "as is" without express or implied warranty, and with       *
7 #  *     no claim at to its suitability for any purpose.                      *
8 #  *                                                                          *
9 #  ************************************************************************** */
10 #
11 # /* See http://www.boost.org for most recent version. */
12 #
13 # ifndef BOOST_PREPROCESSOR_ARRAY_ELEM_HPP
14 # define BOOST_PREPROCESSOR_ARRAY_ELEM_HPP
15 #
16 # include <boost/preprocessor/array/data.hpp>
17 # include <boost/preprocessor/array/size.hpp>
18 # include <boost/preprocessor/config/config.hpp>
19 # include <boost/preprocessor/tuple/elem.hpp>
20 #
21 # /* BOOST_PP_ARRAY_ELEM */
22 #
23 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
24 #    define BOOST_PP_ARRAY_ELEM(i, array) BOOST_PP_TUPLE_ELEM(BOOST_PP_ARRAY_SIZE(array), i, BOOST_PP_ARRAY_DATA(array))
25 # else
26 #    define BOOST_PP_ARRAY_ELEM(i, array) BOOST_PP_ARRAY_ELEM_I(i, array)
27 #    define BOOST_PP_ARRAY_ELEM_I(i, array) BOOST_PP_TUPLE_ELEM(BOOST_PP_ARRAY_SIZE(array), i, BOOST_PP_ARRAY_DATA(array))
28 # endif
29 #
30 # endif