Skip to content

Commit 0e3387a

Browse files
committed
P2251R1 Require span & basic_string_view to be Trivially Copyable
1 parent 2360a59 commit 0e3387a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/containers.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10982,6 +10982,9 @@
1098210982
}
1098310983
\end{codeblock}
1098410984

10985+
\pnum
10986+
\tcode{span<ElementType, Extent>} is a trivially copyable type.
10987+
1098510988
\pnum
1098610989
\tcode{ElementType} is required to be
1098710990
a complete object type that is not an abstract class type.

source/strings.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4210,6 +4210,9 @@
42104210
The complexity of \tcode{basic_string_view} member functions is \bigoh{1}
42114211
unless otherwise specified.
42124212

4213+
\pnum
4214+
\tcode{basic_string_view<charT,traits>} is a trivially copyable type.
4215+
42134216
\rSec3[string.view.cons]{Construction and assignment}
42144217

42154218
\indexlibraryctor{basic_string_view}%

0 commit comments

Comments
 (0)