Skip to content

Commit 680f83e

Browse files
committed
Add a line on equivalence when std::strong_ordering is used.
1 parent b500549 commit 680f83e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

talk/expert/cpp20spaceship.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@
7474
\end{block}
7575
\begin{exampleblock}{3 types of ordering}
7676
\begin{description}[partial]
77-
\item[strong] exactly one test among \cppinline{<0}, \cppinline{==0}, and \cppinline{>0} will return \cppinline{true}
77+
\item[strong] exactly one test among \cppinline{<0}, \cppinline{==0}, and \cppinline{>0} will return \cppinline{true};
78+
\begin{itemize}
79+
\item equivalent values are indistinguishable, i.e.\ all members that take part in the comparison are equal
80+
\end{itemize}
7881
\item[weak] like strong but two \emph{equivalent} values may differ
7982
\begin{itemize}
8083
\item they are however \emph{equivalent} for ranking

0 commit comments

Comments
 (0)