Description
< div > All that we need now to perform a simple file iteration is to invoke the mechanism: </ div > < div class ="code "> < pre > ??=include BOOST_PP_ITERATE() </ pre > </ div > < div > (The < code > ??=</ code > token is a trigraph for < code > #</ code > . I use the trigraph to make it clear that I am < i > including</ i > a file rather than defining or expanding a macro, but it is not necessary. Even the digraph version, < code > %:</ code > , could be used. Some compilers do not readily accept trigraphs and digraphs, so keep that in mind. Other than that, use whichever one you prefer.) </ div >
< div > Once these two macros are defined, the local iteration is initiated by < i > including</ i > < b > BOOST_PP_LOCAL_ITERATE</ b > (). </ div > < div class ="code "> < pre > ??=include BOOST_PP_LOCAL_ITERATE() </ pre > </ div > < div > (The < code > ??=</ code > token is a trigraph for < code > #</ code > . I use the trigraph to make it clear that I am < i > including</ i > a file rather than defining or expanding a macro, but it is not necessary. Even the digraph version, < code > %:</ code > , could be used. Some compilers do not readily accept trigraphs and digraphs, so keep that in mind. Other than that, use whichever one you prefer.) </ div >
Reactions are currently unavailable
You can’t perform that action at this time.
preprocessor/doc/topics/file_iteration.html
Lines 97 to 113 in d899a71
preprocessor/doc/topics/local_iteration.html
Lines 84 to 96 in d899a71