c++boost.gif (8819 bytes)
Main Page   File List   File Members  

tuple.hpp File Reference


Defines

#define BOOST_PP_TUPLE_ELEM(N, I, T)
 Expands to the I:th element of an N-tuple. More...

#define BOOST_PREPROCESSOR_TUPLE_ELEM(N, I, T)
 Obsolete. Use BOOST_PP_TUPLE_ELEM(). More...


Detailed Description

Click here to see the header.


Define Documentation

#define BOOST_PP_TUPLE_ELEM N,
I,
 
 

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

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)

Example:

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

The above expands to:

  B

See also BOOST_PP_LIMIT_TUPLE.

#define BOOST_PREPROCESSOR_TUPLE_ELEM N,
I,
 
 

Obsolete. Use BOOST_PP_TUPLE_ELEM().


© Copyright Housemarque Oy 2001

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: