![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULTBoost , ,
The BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT macro generates a comma-separated list of parameters with a default argument.
Usage
BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(count, param, def)
Arguments
Remarks
This macro expands to the comma-separated sequence:
param ## 0 = def, param ## 1 = def, ... param ## count - 1 = def
Previously, this macro could not be used recursively inside BOOST_PP_REPEAT.
This limitation no longer exists, as the library can automatically detect the next available repetition depth.
This macro is deprecated.
It only exists for backward compatibility.
Use BOOST_PP_ENUM_BINARY_PARAMS with BOOST_PP_INTERCEPT instead:
BOOST_PP_ENUM_BINARY_PARAMS(count, param, = def BOOST_PP_INTERCEPT)
See AlsoRequirementsSample Code#include <boost/preprocessor/repetition/enum_params_with_a_default.hpp> BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(3, class T, int) // expands to T0 = int, T1 = int, T2 = int BOOST_PP_ENUM_BINARY_PARAMS(3, class T, = int BOOST_PP_INTERCEPT) // expands to T0 = int, T1 = int, T2 = int
© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002
Распространяется в соответствии с Лицензией на программное обеспечение Boost версии 1.0. (См. сопроводительный файл LICENSE_1_0.txt или копию по адресу www.boost.org/LICENSE_1_0.txt) Статья BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
|
||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |