C++ Boost

Boost.Preprocessor

Reference


Prev Next Macros Headers

#include <boost/preprocessor/tuple/elem.hpp>


#define BOOST_PP_TUPLE_ELEM(N,I,T)

Expands to the I:th element of an N-tuple.

For example,

  BOOST_PP_TUPLE_ELEM(2,1,(A,B))

expands to B.

Tuples can be used for representing structured data.

Examples of tuples:

  2-tuple: (A, B)
  3-tuple: (1, 2, 3)
  4-tuple: (A B C, D, EF, 34)

See


#define BOOST_PREPROCESSOR_TUPLE_ELEM(N,I,T)

Obsolete. Use BOOST_PP_TUPLE_ELEM().


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.