Files
cppdraft_translate/cppdraft/tuple/general.md
2025-10-25 03:02:53 +03:00

33 lines
1.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[tuple.general]
# 22 General utilities library [[utilities]](./#utilities)
## 22.4 Tuples [[tuple]](tuple#general)
### 22.4.1 General [tuple.general]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L1508)
Subclause [[tuple]](tuple "22.4Tuples") describes the tuple library that provides a tuple type as
the class template tuple that can be instantiated with any number
of arguments[.](#1.sentence-1)
Each template argument specifies
the type of an element in the tuple[.](#1.sentence-2)
Consequently, tuples are
heterogeneous, fixed-size collections of values[.](#1.sentence-3)
An instantiation of tuple with
two arguments is similar to an instantiation of pair with the same two arguments[.](#1.sentence-4)
See [[pairs]](pairs "22.3Pairs")[.](#1.sentence-5)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L1518)
In addition to being available via inclusion of the [<tuple>](tuple.syn#header:%3ctuple%3e "22.4.2Header <tuple> synopsis[tuple.syn]") header,ignore ([[tuple.syn]](tuple.syn "22.4.2Header <tuple> synopsis")) is available when[<utility>](utility.syn#header:%3cutility%3e "22.2.1Header <utility> synopsis[utility.syn]") ([[utility]](utility "22.2Utility components")) is included[.](#2.sentence-1)