Skip to content

Commit

Permalink
Merge 2021-10 LWG Motion 14
Browse files Browse the repository at this point in the history
P2251R1 Require span & basic_string_view to be Trivially Copyable
  • Loading branch information
tkoeppe committed Oct 20, 2021
2 parents c3a973b + eb5ede3 commit 4372345
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11061,6 +11061,9 @@
}
\end{codeblock}

\pnum
\tcode{span<ElementType, Extent>} is a trivially copyable type\iref{basic.types.general}.

\pnum
\tcode{ElementType} is required to be
a complete object type that is not an abstract class type.
Expand Down
3 changes: 3 additions & 0 deletions source/strings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4272,6 +4272,9 @@
The complexity of \tcode{basic_string_view} member functions is \bigoh{1}
unless otherwise specified.

\pnum
\tcode{basic_string_view<charT, traits>} is a trivially copyable type\iref{basic.types.general}.

\rSec3[string.view.cons]{Construction and assignment}

\indexlibraryctor{basic_string_view}%
Expand Down

0 comments on commit 4372345

Please sign in to comment.