![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
BOOST_PP_LIST_TO_TUPLEBoost , , The BOOST_PP_LIST_TO_TUPLE macro
converts a list to a tuple.
Usage BOOST_PP_LIST_TO_TUPLE(list)
Arguments
Remarks If list is, for example, (a, (b, (c, BOOST_PP_NIL))),
this macro will produce:
(a, b, c)
Previously, this macro could not be used inside BOOST_PP_FOR.
There is no longer any such restriction. It is more efficient,
however, to use BOOST_PP_LIST_TO_TUPLE_R in such a situation.
If the list to be converted is empty, as represented by 'BOOST_PP_NIL', the resulting tuple is undefined since a tuple cannot be empty. See AlsoRequirementsSample Code#include <boost/preprocessor/list/to_tuple.hpp> #define LIST (w, (x, (y, (z, BOOST_PP_NIL)))) BOOST_PP_LIST_TO_TUPLE(LIST) // expands to (w, x, y, z) © 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_LIST_TO_TUPLE раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
|
||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |