# Boost.Preprocessor - Reference

###

# Boost.Preprocessor

## Reference

Prev Next Macros Headers

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

## #define BOOST_PP_LIST_TO_TUPLE(LIST)

Converts the list to a tuple.

For example,

      BOOST_PP_LIST_TO_TUPLE(BOOST_PP_TUPLE_TO_LIST(3,(A,B,C)))

expands to `(A,B,C)`.

### Note

- The supported size of the list being converted to a tuple is limited by BOOST_PP_LIMIT_MAG rather than BOOST_PP_LIMIT_TUPLE.

### Uses

- BOOST_PP_FOR()

### Test

- list_test.cpp

## #define BOOST_PP_LIST_TO_TUPLE_R(R,LIST)

Can be used inside BOOST_PP_FOR().

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.