c++boost.gif (8819 bytes)

#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(N-1,P)

2D and 3D repetition

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

Example

See


#define BOOST_PREPROCESSOR_REPEAT(N,M,P)

Obsolete. Use BOOST_PP_REPEAT().


(C) 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.

Generated: