![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
BOOST_PP_REPEAT_FROM_TO_2NDBoost , ,
The BOOST_PP_REPEAT_FROM_TO_2ND macro represents the second dimension of BOOST_PP_REPEAT_FROM_TO.
Usage
BOOST_PP_REPEAT_FROM_TO_2ND(first, last, macro, data)
Arguments
Remarks
This macro expands to the sequence:
macro(z, first, data) macro(z, first + 1, data) ... macro(z, last - 1, data)
The number of repetitions (i.e. last - first) must not exceed BOOST_PP_LIMIT_REPEAT.
The z value that is passed to macro represents the next available repetition dimension.
Other macros that have _Z suffix variants internally use BOOST_PP_REPEAT--for example, BOOST_PP_ENUM_PARAMS and BOOST_PP_ENUM_PARAMS_Z.
Using these _Z versions is not strictly necessary, but passing the z value (that is passed to macro) to these macros allows them to reenter BOOST_PP_REPEAT with maximum efficiency.
To directly use this z value, rather than simply passing it to another macro, see BOOST_PP_REPEAT_FROM_TO_z.
This macro is deprecated.
It only exists for backward compatibility.
Use BOOST_PP_REPEAT_FROM_TO instead.
See AlsoRequirementsSample Code#include <boost/preprocessor/repetition/repeat_from_to.hpp> #define MACRO(z, n, data) (n) BOOST_PP_REPEAT_FROM_TO_2ND(1, 6, MACRO, nil) // expands to (1) (2) (3) (4) (5)
© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002
Distributed under the Boost Software License, Version 1.0. (См. сопроводительный файл LICENSE_1_0.txt или копия на www.boost.org/LICENSE_1_0.txt) Статья BOOST_PP_REPEAT_FROM_TO_2ND раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
|
||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |