Skip to content

Commit f56d939

Browse files
committed
[iterator.concept.winc] Refactor definition of "integer-like type"
- "`I` models `integral<I>`" is not how we say it: the `<I>` shouldn't be there. - The concept `integral` is modeled only by integral types. Cut out the middleman. - Make the sentence structure less hypothetical; use "collectively called" as we usually do. - Clearly specify that cv bool is *not* integer-like, rather than leaving it out of the premise.
1 parent 15fc5a2 commit f56d939

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

source/iterators.tex

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,15 +1445,12 @@
14451445
that of every integral type of the same signedness.
14461446

14471447
\pnum
1448-
A type \tcode{I} other than \cv{}~\tcode{bool} is \defn{integer-like}
1449-
if it models \tcode{\libconcept{integral}<I>} or
1450-
if it is an integer-class type.
1451-
An integer-like type \tcode{I} is \defn{signed-integer-like}
1452-
if it models \tcode{\libconcept{signed_integral}<I>} or
1453-
if it is a signed-integer-class type.
1454-
An integer-like type \tcode{I} is \defn{unsigned-integer-like}
1455-
if it models \tcode{\libconcept{unsigned_integral}<I>} or
1456-
if it is an unsigned-integer-class type.
1448+
Integer-class types and integral types\iref{basic.fundamental} other than \cv{}~\tcode{bool}
1449+
are collectively called \defnadjx{integer-like}{types}{type}.
1450+
Signed-integer-class types and signed integral types
1451+
are collectively called \defnadjx{signed-integer-like}{types}{type}.
1452+
Unsigned-integer-class types and unsigned integral types other than \cv{}~\tcode{bool}
1453+
are collectively called \defnadjx{unsigned-integer-like}{types}{type}.
14571454

14581455
\pnum
14591456
For every integer-class type \tcode{I},

0 commit comments

Comments
 (0)