This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

32
cppdraft/tuple/general.md Normal file
View File

@@ -0,0 +1,32 @@
[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)