Main Page File List File Members

# repeat.hpp File Reference

## Defines
#define | BOOST_PREPROCESSOR_REPEAT(N, M, P)
| Repeats the macro M(I,P) for I = 0 to N-1. More...

## Detailed Description

Click here to see the header.

## Define Documentation

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

| Repeats the macro M(I,P) for I = 0 to N-1. In other words, expands to the sequence:

      M(0,P) M(1,P) ... M(N-1,P)
See BOOST_PREPROCESSOR_LIMIT_MAG. RATIONALE: BOOST_PREPROCESSOR_REPEAT, BOOST_PREPROCESSOR_REPEAT_2ND, ... must work together. BOOST_PREPROCESSOR_REPEAT is already tested with BOOST_PREPROCESSOR_ENUM_PARAMS. The tested repeat count should exceed imaginable usage. Testing the generation of is_function_helper()s upto 40 arguments should be sufficient in this case. Many compilers may fail the repetition tests (at least with higher counts). However, the primary purpose of the repetition primitives is to enable configurability with reasonable defaults, and not necessarily "the most impressive repetition".

© Copyright Housemarque, Inc. 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: 25 Nov 2001