Skip to content

Commit 658b94e

Browse files
Merge pull request HappyCerberus#6 from simogasp/patch-1
[ch03] missing formatting for std::unique
2 parents 28b7779 + de06109 commit 658b94e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapters/03_algorithms_06_linear_sorted.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ \subsection{\texorpdfstring{\cpp{std::unique}, \cpp{std::unique_copy}}{\texttt{s
6262
\index{\cpp{std::unique}}
6363
\index{\cpp{std::unique_copy}}
6464

65-
The std::unique algorithm removes consecutive duplicate values. The typical use case is in conjunction with a sorted range. However, this is not a requirement of std::unique.
65+
The \cpp{std::unique} algorithm removes consecutive duplicate values. The typical use case is in conjunction with a sorted range. However, this is not a requirement of \cpp{std::unique}.
6666

6767
\cppversions{\texttt{unique}}{\CC98}{\CC20}{\CC17}{\CC20}
6868
\constraints{\texttt{forward\_range}}{\texttt{forward\_range}}{\texttt{operator==}}{\texttt{binary\_predicate}}
@@ -75,7 +75,7 @@ \subsection{\texorpdfstring{\cpp{std::unique}, \cpp{std::unique_copy}}{\texttt{s
7575
\cppfile{code_examples/algorithms/unique_code.h}
7676
\end{box-note}
7777

78-
The \cpp{std::unique_copy} is a variant of std::unique that outputs the unique values to a second range.
78+
The \cpp{std::unique_copy} is a variant of \cpp{std::unique} that outputs the unique values to a second range.
7979

8080
\cppversions{\texttt{unique\_copy}}{\CC98}{\CC20}{\CC17}{\CC20}
8181
\constraints{\texttt{input\_range -> output\_iterator}}{\texttt{forward\_range -> forward\_iterator}}{\texttt{operator==}}{\texttt{binary\_predicate}}
@@ -84,4 +84,4 @@ \subsection{\texorpdfstring{\cpp{std::unique}, \cpp{std::unique_copy}}{\texttt{s
8484
\footnotesize Example of using \cpp{std::unique_copy}.
8585
\tcblower
8686
\cppfile{code_examples/algorithms/unique_copy_code.h}
87-
\end{box-note}
87+
\end{box-note}

0 commit comments

Comments
 (0)