Skip to content

[re.regiter.general] Move const into \tcode #7878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/text.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12238,8 +12238,8 @@
constructs an end-of-sequence iterator object,
which is the only legitimate iterator to be used for the end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat misleading since we added comparison with default_sentinel_t although that's not actually an iterator so it's technically true, just misleading.

condition. The result of \tcode{operator*} on an end-of-sequence iterator is not
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this prose is just repeating general iterator requirements (you can't dereference the end iterator, dereferencing it returns the iterator's reference type etc).

defined. For any other iterator value a const
\tcode{match_results<BidirectionalIterator>\&} is returned. The result of
defined. For any other iterator value a
\tcode{const match_results<BidirectionalIterator>\&} is returned. The result of
\tcode{operator->} on an end-of-sequence iterator is not defined. For any other
iterator value a \tcode{const match_results<BidirectionalIterator>*} is
returned. It is impossible to store things into \tcode{regex_iterator}s. Two
Expand Down
Loading