Skip to content
Closed
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
9 changes: 7 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,10 @@
which cannot be done in constant time.
\end{example}

\pnum
Since the difference between \libconcept{Range} and \libconcept{View} is largely
semantic, the two are differentiated with the help of \tcode{enable_view}.

\indexlibrary{\idxcode{enable_view}}%
\indexlibrary{\idxcode{View}}%
\begin{itemdecl}
Expand All @@ -863,8 +867,9 @@

\begin{itemdescr}
\pnum
Since the difference between \libconcept{Range} and \libconcept{View} is largely
semantic, the two are differentiated with the help of \tcode{enable_view}.
\tcode{T} models \libconcept{View} only if the complexity
for each initialization and assignment required by \libconcept{Copyable<T>}
is constant time.
Copy link
Member

Choose a reason for hiding this comment

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

This may well be intended, but I don't see how it's editorial. Is this somehow justified by the existing text?

Copy link
Contributor

Choose a reason for hiding this comment

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

Paragraph 1 above: "The View concept specifies the requirements of a Range type that has constant time copy, move, and assignment operators...".

Although I wouldn't mind sending this to LWG: we need to add the missing requirement that destruction is O(1) as well which is certainly not editorial.

Copy link
Member

Choose a reason for hiding this comment

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

Let's send the whole thing to LWG then. If they want us to apply the non-normative change editorially we can, but I think it's generally better for holistic changes with a normative component to be applied together.


\pnum
For a type \tcode{T}, the default value of \tcode{enable_view<T>} is:
Expand Down