Skip to content

Commit 961ddcd

Browse files
committed
[string.view.*] More source linebreaks.
1 parent 80f9f1b commit 961ddcd

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

source/strings.tex

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,20 @@
519519
\rSec2[string.view.general]{General}
520520

521521
\pnum
522-
The class template \tcode{basic_string_view} describes an object that can refer to a constant contiguous sequence of char-like\iref{strings.general} objects with the first element of the sequence at position zero.
523-
In the rest of \ref{string.view}, the type of the char-like objects held in a \tcode{basic_string_view} object is designated by \tcode{charT}.
522+
The class template \tcode{basic_string_view} describes an object
523+
that can refer to a constant contiguous sequence of char-like\iref{strings.general} objects
524+
with the first element of the sequence at position zero.
525+
In the rest of \ref{string.view}, the type of the char-like objects
526+
held in a \tcode{basic_string_view} object is designated by \tcode{charT}.
524527

525528
\pnum
526529
\begin{note}
527-
The library provides implicit conversions from \tcode{const charT*} and \tcode{std::basic_string<charT, ...>} to \tcode{std::basic_string_view<charT, ...>} so that user code can accept just \tcode{std::basic_string_view<charT>} as a non-templated parameter wherever a sequence of characters is expected.
528-
User-defined types can define their own implicit conversions to \tcode{std::basic_string_view<charT>} in order to interoperate with these functions.
530+
The library provides implicit conversions from \tcode{const charT*}
531+
and \tcode{std::basic_string<charT, ...>} to \tcode{std::basic_string_view<charT, ...>}
532+
so that user code can accept just \tcode{std::basic_string_view<charT>}
533+
as a non-templated parameter wherever a sequence of characters is expected.
534+
User-defined types can define their own implicit conversions
535+
to \tcode{std::basic_string_view<charT>} in order to interoperate with these functions.
529536
\end{note}
530537

531538
\rSec2[string.view.synop]{Header \tcode{<string_view>} synopsis}
@@ -934,7 +941,8 @@
934941
whose \tcode{value_type} is the template parameter \tcode{charT}.
935942

936943
\pnum
937-
All requirements on container iterators\iref{container.requirements} apply to \tcode{basic_string_view::const_iterator} as well.
944+
All requirements on container iterators\iref{container.requirements}
945+
apply to \tcode{basic_string_view::const_iterator} as well.
938946
\end{itemdescr}
939947

940948
\indexlibrarymember{begin}{basic_string_view}%
@@ -1017,7 +1025,8 @@
10171025
\begin{itemdescr}
10181026
\pnum
10191027
\returns
1020-
The largest possible number of char-like objects that can be referred to by a \tcode{basic_string_view}.
1028+
The largest possible number of char-like objects
1029+
that can be referred to by a \tcode{basic_string_view}.
10211030
\end{itemdescr}
10221031

10231032
\indexlibrarymember{empty}{basic_string_view}%
@@ -1122,7 +1131,8 @@
11221131
\begin{note}
11231132
Unlike \tcode{basic_string::data()} and \grammarterm{string-literal}s,
11241133
\tcode{data()} can return a pointer to a buffer that is not null-terminated.
1125-
Therefore it is typically a mistake to pass \tcode{data()} to a function that takes just a \tcode{const charT*} and expects a null-terminated string.
1134+
Therefore it is typically a mistake to pass \tcode{data()} to a function
1135+
that takes just a \tcode{const charT*} and expects a null-terminated string.
11261136
\end{note}
11271137
\end{itemdescr}
11281138

0 commit comments

Comments
 (0)