Skip to content

Commit 63302b5

Browse files
jensmaurertkoeppe
authored andcommitted
P2321R2 zip
- Fix incorrect template-heads for tuple constructors taking a pair. - Rephrased "expression within noexcept" to "exception specification". - Add missing "const" from member function. - Drop "..." from pack (a pack is not the same as a pack expansion).
1 parent 8f900e1 commit 63302b5

File tree

5 files changed

+2915
-124
lines changed

5 files changed

+2915
-124
lines changed

source/containers.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6296,6 +6296,7 @@
62966296
constexpr operator bool() const noexcept;
62976297
constexpr reference& operator=(bool x) noexcept;
62986298
constexpr reference& operator=(const reference& x) noexcept;
6299+
constexpr const reference& operator=(bool x) const noexcept;
62996300
constexpr void flip() noexcept; // flips the bit
63006301
};
63016302

source/iterators.tex

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,10 +1381,11 @@
13811381

13821382
\pnum
13831383
Expressions of integer-class type are
1384-
explicitly convertible to any integral type.
1384+
explicitly convertible to any integral type as well as any integer-class type.
13851385
Expressions of integral type are
13861386
both implicitly and explicitly convertible to any integer-class type.
1387-
Conversions between integral and integer-class types
1387+
Conversions between integral and integer-class types and
1388+
between two integer-class types
13881389
do not exit via an exception.
13891390

13901391
\pnum
@@ -1434,6 +1435,14 @@
14341435
if it models \tcode{\libconcept{unsigned_integral}<I>} or
14351436
if it is an unsigned-integer-class type.
14361437

1438+
\pnum
1439+
For any two integer-like types \tcode{I1} and \tcode{I2},
1440+
at least one of which is an integer-class type,
1441+
\tcode{common_type_t<I1, I2>} denotes an integer-like type
1442+
whose width is not less than that of \tcode{I1} or \tcode{I2}.
1443+
If both \tcode{I1} and \tcode{I2} are signed-integer-like types,
1444+
then \tcode{common_type_t<I1, I2>} is also a signed-integer-like type.
1445+
14371446
\pnum
14381447
\tcode{\exposid{is-integer-like}<I>} is \tcode{true}
14391448
if and only if \tcode{I} is an integer-like type.

0 commit comments

Comments
 (0)