Skip to content
Merged
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
4 changes: 2 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6136,7 +6136,7 @@
\begin{example}
\begin{codeblock}
vector<string> vs = {"the", "quick", "brown", "fox"};
for (char c : vs | join_with('-')) {
for (char c : vs | views::join_with('-')) {
cout << c;
}
// The above prints \tcode{the-quick-brown-fox}
Expand Down Expand Up @@ -7278,7 +7278,7 @@
\begin{example}
\begin{codeblock}
string str{"the quick brown fox"};
for (string_view word : split(str, ' ')) {
for (string_view word : views::split(str, ' ')) {
cout << word << '*';
}
// The above prints \tcode{the*quick*brown*fox*}
Expand Down