Skip to content

Commit

Permalink
[qty.cmp][qty.pt.cmp] Use _with concepts as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Nov 24, 2024
1 parent 3b04b7e commit a8daee3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4430,10 +4430,7 @@
\pnum
In the following descriptions,
let \tcode{@} be the \fakegrammarterm{operator}, and
let \placeholder{C} be
\tcode{std::\stdconcept{equality_comparable}} if \tcode{@} is \tcode{==}, and
\tcode{std::\stdconcept{three_way_comparable}} if \tcode{@} is \tcode{<=>}.
let \tcode{@} be the \fakegrammarterm{operator}.
\indexlibrarymember{quantity}{operator==}
\indexlibrarymember{quantity}{operator<=>}
Expand All @@ -4447,6 +4444,11 @@
\end{itemdecl}
\begin{itemdescr}
\pnum
Let \placeholder{C} be
\tcode{std::\stdconcept{equality_comparable}} if \tcode{@} is \tcode{==}, and
\tcode{std::\stdconcept{three_way_comparable}} if \tcode{@} is \tcode{<=>}.
\pnum
\effects
Equivalent to:
Expand Down Expand Up @@ -4479,6 +4481,11 @@
\end{itemdecl}
\begin{itemdescr}
\pnum
Let \placeholder{C} be
\tcode{std::\stdconcept{equality_comparable_with}} if \tcode{@} is \tcode{==}, and
\tcode{std::\stdconcept{three_way_comparable_with}} if \tcode{@} is \tcode{<=>}.
\pnum
\returns
\tcode{lhs.numerical_value_ref_in(unit) @ rhs}.
Expand Down Expand Up @@ -5639,8 +5646,8 @@
\pnum
Let \tcode{@} be the \fakegrammarterm{operator}, and
let \placeholder{C} be
\tcode{std::\stdconcept{equality_comparable}} if \tcode{@} is \tcode{==}, and
\tcode{std::\stdconcept{three_way_comparable}} if \tcode{@} is \tcode{<=>}.
\tcode{std::\stdconcept{equality_comparable_with}} if \tcode{@} is \tcode{==}, and
\tcode{std::\stdconcept{three_way_comparable_with}} if \tcode{@} is \tcode{<=>}.
\pnum
\effects
Expand Down

0 comments on commit a8daee3

Please sign in to comment.