Skip to content
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

[range.dangling] The tag of a struct is not a C++ term #5922

Merged
merged 1 commit into from
Nov 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2138,15 +2138,15 @@
\rSec2[range.dangling]{Dangling iterator handling}

\pnum
The tag type \tcode{dangling} is used together with the template aliases
The type \tcode{dangling} is used together with the template aliases
\tcode{borrowed_iterator_t} and \tcode{borrowed_subrange_t}.
When an algorithm
that typically returns an iterator into, or a subrange of, a range argument
is called with an rvalue range argument
that does not model \libconcept{borrowed_range}\iref{range.range},
the return value possibly refers to a range whose lifetime has ended.
In such cases,
the tag type \tcode{dangling} is returned instead of an iterator or subrange.
the type \tcode{dangling} is returned instead of an iterator or subrange.
\indexlibraryglobal{dangling}%
\begin{codeblock}
namespace std::ranges {
Expand Down