Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

BOOST_PP_ENUM_PARAMS

Boost , ,

The BOOST_PP_ENUM_PARAMS macro generates a comma-separated list of parameters.

Usage

BOOST_PP_ENUM_PARAMS(count, param)

Arguments

count
The number of parameters to generate.  Valid values range from 0 to BOOST_PP_LIMIT_REPEAT.
param
The text of the parameter.  BOOST_PP_ENUM_PARAMS concatenates numbers ranging from 0 to count - 1 to generate parameters.

Remarks

This macro expands to the comma-separated sequence:
param ## 0, param ## 1, ... param ## count - 1
To use the z parameter passed from other macros that use BOOST_PP_REPEAT, see BOOST_PP_ENUM_PARAMS_Z.
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.

See Also

Requirements

Header:  <boost/preprocessor/repetition/enum_params.hpp>

Sample Code

#include <boost/preprocessor/repetition/enum_params.hpp>
BOOST_PP_ENUM_PARAMS(3, class T) // expands to class T0, class T1, class T2

© 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_ENUM_PARAMS раздела может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-22 17:05:45/0.0030488967895508/0