###  | # Boost.Preprocessor ## Reference

Prev Next Macros Headers

# #include <boost/preprocessor/repeat.hpp>

## #define BOOST_PP_REPEAT(N,M,P)

Repeats the macro `M(I,P)` for I = [0,N-1[.

In other words, expands to the sequence:

      M(0,P) M(1,P) ... M(BOOST_PP_DEC(N),P)

### 2D and 3D repetition

2D and 3D repetition are supported with the BOOST_PP_REPEAT_2ND() and BOOST_PP_REPEAT_3RD() macros.

### Example

- repeat_2d.c

### See

- BOOST_PP_FOR()
- BOOST_PP_LIMIT_MAG

## #define BOOST_PREPROCESSOR_REPEAT(N,M,P)

Obsolete. Use BOOST_PP_REPEAT().

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.