Skip to content

P2251R1 Require span & basic_string_view to be Trivially Copyable #5000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
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
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