![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
BOOST_PP_INTERCEPTBoost , ,
The BOOST_PP_INTERCEPT macro intercepts a numeric concatenation and expands to nothing.
Usage
BOOST_PP_INTERCEPT
Remarks
This macro is used to intercept concatenations performed by various other library constructs.
It is typically used after other text to prevent eat the concatenation expand to nothing.
This macro can only intercept integer constants in the range of 0 to BOOST_PP_LIMIT_MAG.
See AlsoRequirementsSample Code#include <boost/preprocessor/facilities/intercept.hpp> #include <boost/preprocessor/repetition/enum_binary_params.hpp> BOOST_PP_ENUM_BINARY_PARAMS(3, class T, = U) // expands to class T0 = U0, class T1 = U1, class T2 = U2 BOOST_PP_ENUM_BINARY_PARAMS(3, class T, = int BOOST_PP_INTERCEPT) // expands to class T0 = int, class T1 = int, class T2 = int
© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002
Распространяется в соответствии с лицензией Boost Software License, Version 1.0. (См. сопроводительный файл)LICENSE_1_0.txtили копия наwww.boost.org/LICENSE_1_0.txt Статья BOOST_PP_INTERCEPT раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
|
||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |