Skip to content

Commit 58382cb

Browse files
committed
Merge 2018-03 LWG Motion 16
2 parents c792a37 + 83460f7 commit 58382cb

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

source/containers.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,6 +3149,10 @@
31493149
one of these tables and
31503150
for operations where there is additional semantic information.
31513151

3152+
\pnum
3153+
The types \tcode{iterator} and \tcode{const_iterator} satisfy
3154+
the constexpr iterator requirements\iref{iterator.requirements.general}.
3155+
31523156
\indexlibrary{\idxcode{array}}%
31533157
\indexlibrarymember{array}{begin}%
31543158
\indexlibrarymember{array}{end}%

source/iterators.tex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,21 @@
222222
is undefined.
223223
}
224224

225+
\pnum
226+
\indextext{iterator!constexpr}
227+
Iterators are called \defn{constexpr iterators}
228+
if all operations provided to satisfy iterator category operations
229+
are constexpr functions, except for
230+
\begin{itemize}
231+
\item \tcode{swap},
232+
\item a pseudo-destructor call\iref{expr.pseudo}, and
233+
\item the construction of an iterator with a singular value.
234+
\end{itemize}
235+
\begin{note}
236+
For example, the types ``pointer to \tcode{int}'' and
237+
\tcode{reverse_iterator<int*>} are constexpr iterators.
238+
\end{note}
239+
225240
\pnum
226241
In the following sections,
227242
\tcode{a}

source/strings.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4973,6 +4973,10 @@
49734973
In every specialization \tcode{basic_string_view<charT, traits>}, the type \tcode{traits} shall satisfy the character traits requirements\iref{char.traits},
49744974
and the type \tcode{traits::char_type} shall name the same type as \tcode{charT}.
49754975

4976+
\pnum
4977+
The type \tcode{iterator} satisfies
4978+
the constexpr iterator requirements\iref{iterator.requirements.general}.
4979+
49764980
\rSec3[string.view.cons]{Construction and assignment}
49774981

49784982
\indexlibrary{\idxcode{basic_string_view}!constructor}%

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy