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

tuples.html

Boost , ,

Tuples

A tuple is a simple comma-separated list of elements inside parenthesis.  For example,
(a, b, c)
...is a tuple of 3 elements--a, b, and c.

A tuple cannot be empty. The notation '()' as a tuple is a single element tuple of size 1, where the element is empty.
Tuples are fast and easy to use.  With variadic macro support it is not necessary to know the size of a tuple; without variadic macro support all access to tuples requires knowledge of its size. Use a tuple instead of an array if your compiler supports variadic macros, since a tuple has all of the functionality as an array and is easier syntactically to use. The only functionality an array has which a tuple does not have is that an array can be empty whereas a tuple cannot be empty.
Elements of a tuple can be extracted with BOOST_PP_TUPLE_ELEM.

Primitives


© Copyright Housemarque Oy 2002
© Copyright Paul Mensonides 2002

Распространяется в соответствии с Лицензией на программное обеспечение Boost версии 1.0. (См. сопроводительный файл LICENSE_1_0.txt или копию по адресу www.boost.org/LICENSE_1_0.txt)

Статья tuples.html раздела может быть полезна для разработчиков на c++ и boost.




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 14:03:23/0.0025911331176758/0