Skip to content

Commit c9856cc

Browse files
burblebeetkoeppe
authored andcommitted
LWG3203 span element access invalidation
1 parent 486ed41 commit c9856cc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

source/containers.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18355,6 +18355,12 @@
1835518355
\tcode{ElementType} is required to be
1835618356
a complete object type that is not an abstract class type.
1835718357

18358+
\pnum
18359+
For a \tcode{span} \tcode{s},
18360+
any operation that invalidates a pointer in
18361+
the range \range{s.data()}{s.data() + s.size()}
18362+
invalidates pointers, iterators, and references to elements of \tcode{s}.
18363+
1835818364
\rSec4[span.cons]{Constructors, copy, and assignment}
1835918365

1836018366
\indexlibraryctor{span}%

source/strings.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,10 @@
751751
any operation that invalidates a pointer
752752
in the range
753753
\begin{codeblock}
754-
@\range{str.data()}{\brk{}str.data() + str.size()}@
754+
@\range{str.data()}{str.data() + str.size()}@
755755
\end{codeblock}
756756
invalidates pointers, iterators, and references
757-
returned from \tcode{str}'s member functions.
757+
to elements of \tcode{str}.
758758

759759
\pnum
760760
The complexity of \tcode{basic_string_view} member functions is \bigoh{1}

0 commit comments

Comments
 (0)