forked from boostorg/preprocessor
PREPROCESSOR -> PP. WHILE documented.
[SVN r12162]
This commit is contained in:
@ -17,21 +17,11 @@
|
||||
<a href="../../../../boost/preprocessor/enum_shifted_params.hpp">Click here to see the header.</a>
|
||||
*/
|
||||
|
||||
#ifndef BOOST_PREPROCESSOR_CAT_HPP
|
||||
# include <boost/preprocessor/cat.hpp>
|
||||
#endif
|
||||
#ifndef BOOST_PREPROCESSOR_COMMA_IF_HPP
|
||||
# include <boost/preprocessor/comma_if.hpp>
|
||||
#endif
|
||||
#ifndef BOOST_PREPROCESSOR_DEC_HPP
|
||||
# include <boost/preprocessor/dec.hpp>
|
||||
#endif
|
||||
#ifndef BOOST_PREPROCESSOR_INC_HPP
|
||||
# include <boost/preprocessor/inc.hpp>
|
||||
#endif
|
||||
#ifndef BOOST_PREPROCESSOR_REPEAT_HPP
|
||||
# include <boost/preprocessor/repeat.hpp>
|
||||
#endif
|
||||
#include <boost/preprocessor/cat.hpp>
|
||||
#include <boost/preprocessor/comma_if.hpp>
|
||||
#include <boost/preprocessor/dec.hpp>
|
||||
#include <boost/preprocessor/inc.hpp>
|
||||
#include <boost/preprocessor/repeat.hpp>
|
||||
|
||||
//! Generates a comma separated list of shifted actual parameters.
|
||||
/*!
|
||||
@ -41,15 +31,18 @@ In other words, expands to the sequence:
|
||||
P##1, P##2, ..., P##N-1
|
||||
\endverbatim</PRE>
|
||||
|
||||
NOTE: The implementation uses BOOST_PREPROCESSOR_REPEAT().
|
||||
NOTE: The implementation uses BOOST_PP_REPEAT().
|
||||
|
||||
RATIONALE:
|
||||
- This macro facilitates a typical usage of the library. Shifted parameter
|
||||
lists are common in template metaprograms.
|
||||
*/
|
||||
#define BOOST_PREPROCESSOR_ENUM_SHIFTED_PARAMS(N,P) BOOST_PREPROCESSOR_REPEAT(BOOST_PREPROCESSOR_DEC(N),BOOST_PREPROCESSOR_SHIFTED_PARAM,P)
|
||||
#define BOOST_PP_ENUM_SHIFTED_PARAMS(N,P) BOOST_PP_REPEAT(BOOST_PP_DEC(N),BOOST_PP_SHIFTED_PARAM,P)
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||
#define BOOST_PREPROCESSOR_SHIFTED_PARAM(I,P) BOOST_PREPROCESSOR_COMMA_IF(I) BOOST_PREPROCESSOR_CAT(P,BOOST_PREPROCESSOR_INC(I))
|
||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||
#define BOOST_PP_SHIFTED_PARAM(I,P) BOOST_PP_COMMA_IF(I) BOOST_PP_CAT(P,BOOST_PP_INC(I))
|
||||
#endif
|
||||
|
||||
//! Obsolete. Use BOOST_PP_ENUM_SHIFTED_PARAMS().
|
||||
#define BOOST_PREPROCESSOR_ENUM_SHIFTED_PARAMS(N,P) BOOST_PP_ENUM_SHIFTED_PARAMS(N,P)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user