c++boost.gif (8819 bytes)

#include <boost/preprocessor/list/at.hpp>


#define BOOST_PP_LIST_AT(L,I)

Expands to the I:th element of the list L. 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.

Uses


(C) 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.

Generated: