###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

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

## #define BOOST_PP_LIST_FOR_EACH_PRODUCT(F,N,T_OF_L)

Repeats `F(R,X)` for each element `X` of the cartesian product of the lists of the `N`-tuple `T_OF_L`.

This macro is useful for generating code to avoid combinatorial explosion.

### Example

- is_integral.cpp
- array_arithmetic.c

### Uses

- BOOST_PP_FOR()

### Test

- list_test.cpp

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.