PREPROCESSOR -> PP. WHILE documented.

[SVN r12162]
This commit is contained in:
Vesa Karvonen
2001-12-28 11:06:53 +00:00
parent 5991b00456
commit d8b52a3a42
90 changed files with 3441 additions and 1889 deletions

View File

@ -17,19 +17,19 @@
<a href="../../../../boost/preprocessor/empty.hpp">Click here to see the header.</a>
*/
//! Expands to nothing. Used with BOOST_PREPROCESSOR_IF() and as an unused parameter.
//! Expands to nothing. Used with BOOST_PP_IF() and as an unused parameter.
/*!
Example usage as the implementation of BOOST_PREPROCESSOR_COMMA_IF(C):
Example usage as the implementation of BOOST_PP_COMMA_IF(C):
<PRE>\verbatim
#define BOOST_PREPROCESSOR_COMMA_IF(C)\
BOOST_PREPROCESSOR_IF(C,BOOST_PREPROCESSOR_COMMA,BOOST_PREPROCESSOR_EMPTY)()
#define BOOST_PP_COMMA_IF(C)\
BOOST_PP_IF(C,BOOST_PP_COMMA,BOOST_PP_EMPTY)()
\endverbatim</PRE>
Example usage as an unused macro parameter:
<PRE>\verbatim
#define BOOST_PREPROCESSOR_DEF(CV)\
#define BOOST_PP_DEF(CV)\
template<class base> \
CV typename implement_subscript_using_begin_subscript<base>::value_type&\
implement_subscript_using_begin_subscript<base>::operator[]\
@ -39,9 +39,9 @@ Example usage as an unused macro parameter:
{ return base::begin()[i]; \
}
BOOST_PREPROCESSOR_DEF(BOOST_PREPROCESSOR_EMPTY())
BOOST_PREPROCESSOR_DEF(const)
#undef BOOST_PREPROCESSOR_DEF
BOOST_PP_DEF(BOOST_PP_EMPTY())
BOOST_PP_DEF(const)
#undef BOOST_PP_DEF
\endverbatim</PRE>
The above expands to:
@ -69,5 +69,8 @@ The above expands to:
In case you wonder, the above code is part of a generalized layer for
implementing the subscripting operators of a random access container.
*/
#define BOOST_PP_EMPTY()
//! Obsolete. Use BOOST_PP_EMPTY().
#define BOOST_PREPROCESSOR_EMPTY()
#endif