You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first 2 exposition-only concepts, is-integer-like and is-signed-integer-like, have a template parameter named T.
Then comes the weakly_incrementable concept, with a template parameter named I.
The following normative paragraphs use I to define "integer-class", a subset of the T above. They rightfully reintroduce I each time, although the first one is unused.
Then, the final normative paragraph (before the Note: and Recommended practice:) uses I again, but this time to describe weakly_incrementable.
I is widely used throughout [iterator] to represent iterators. I believe those describing integer-class types should be renamed to T. This would be consistent with the is-integer-like concept.
Editorial meeting: Concepts are predicates. The name should not presuppose the outcome of the check. Thus, use "T" in concept definitions.
After this is applied, or even before, weakly_incrementable could be moved closer to the paragraph describing it. This would leave the definition of integer-class type together with its concepts. Perhaps they could even be moved to their own subclause, as they're used elsewhere. Then there'd be less space for confusion.
The first 2 exposition-only concepts,
is-integer-like
andis-signed-integer-like
, have a template parameter namedT
.Then comes the
weakly_incrementable
concept, with a template parameter namedI
.The following normative paragraphs use
I
to define "integer-class", a subset of theT
above. They rightfully reintroduceI
each time, although the first one is unused.Then, the final normative paragraph (before the Note: and Recommended practice:) uses
I
again, but this time to describeweakly_incrementable
.I
is widely used throughout [iterator] to represent iterators. I believe those describing integer-class types should be renamed toT
. This would be consistent with theis-integer-like
concept.Related: #3457.
The text was updated successfully, but these errors were encountered: