C++ Boost

Boost.Preprocessor

Header <boost/preprocessor/list/at.hpp>


Prev Next Macros Headers

#define BOOST_PP_LIST_AT(LIST,INDEX)

Expands to the INDEX:th element of the list LIST. The first element is at index 0.

For example,

BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(3,(A,B,C)),1)

expands to B.

Test


#define BOOST_PP_LIST_AT_D(D,LIST,INDEX)

Can be used inside BOOST_PP_WHILE() (see for an explanation of the D parameter).


Prev Next Macros Headers

Revised

© Copyright Housemarque Oy 2002

Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.