Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:37

0001 
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_REPEAT_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_REPEAT_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2002-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/config/preprocessor.hpp>
0018 
0019 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
0020 
0021 #   include <boost/preprocessor/cat.hpp>
0022 
0023 #   define BOOST_MPL_PP_REPEAT(n,f,param) \
0024     BOOST_PP_CAT(BOOST_MPL_PP_REPEAT_,n)(f,param) \
0025     /**/
0026     
0027 #   define BOOST_MPL_PP_REPEAT_0(f,p)
0028 #   define BOOST_MPL_PP_REPEAT_1(f,p) f(0,0,p)
0029 #   define BOOST_MPL_PP_REPEAT_2(f,p) f(0,0,p) f(0,1,p)
0030 #   define BOOST_MPL_PP_REPEAT_3(f,p) f(0,0,p) f(0,1,p) f(0,2,p)
0031 #   define BOOST_MPL_PP_REPEAT_4(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p)
0032 #   define BOOST_MPL_PP_REPEAT_5(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p)
0033 #   define BOOST_MPL_PP_REPEAT_6(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p) f(0,5,p)
0034 #   define BOOST_MPL_PP_REPEAT_7(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p) f(0,5,p) f(0,6,p)
0035 #   define BOOST_MPL_PP_REPEAT_8(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p) f(0,5,p) f(0,6,p) f(0,7,p)
0036 #   define BOOST_MPL_PP_REPEAT_9(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p) f(0,5,p) f(0,6,p) f(0,7,p) f(0,8,p)
0037 #   define BOOST_MPL_PP_REPEAT_10(f,p) f(0,0,p) f(0,1,p) f(0,2,p) f(0,3,p) f(0,4,p) f(0,5,p) f(0,6,p) f(0,7,p) f(0,8,p) f(0,9,p)
0038 
0039 #else 
0040 
0041 #   include <boost/preprocessor/repeat.hpp>
0042 
0043 #   define BOOST_MPL_PP_REPEAT(n,f,param) \
0044     BOOST_PP_REPEAT(n,f,param) \
0045     /**/
0046 
0047 #endif 
0048 
0049 #define BOOST_MPL_PP_REPEAT_IDENTITY_FUNC(unused1, unused2, x) x
0050 
0051 #endif // BOOST_MPL_AUX_PREPROCESSOR_REPEAT_HPP_INCLUDED