Skip to content

Commit

Permalink
[qty.mag] Update for parameter renames
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 26, 2024
1 parent 9ecd87e commit 49cb247
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1590,17 +1590,20 @@
template<auto... Ms>
struct @\libglobal{magnitude}@ {
friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2);
friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs);
friend consteval auto operator/(magnitude l, @\libconcept{Magnitude}@ auto r) { return l * @\exposidnc{pow}@<-1>(r); }
friend consteval auto operator/(magnitude lhs, @\libconcept{Magnitude}@ auto rhs)
{
return lhs * @\exposidnc{pow}@<-1>(rhs);
}
template<int Num, int Den = 1>
friend consteval auto @\exposidnc{pow}@(magnitude);
template<@\libconcept{Magnitude}@ M2>
friend consteval bool operator==(magnitude, M2)
template<@\libconcept{Magnitude}@ Rhs>
friend consteval bool operator==(magnitude, Rhs)
{
return ^magnitude == ^M2;
return ^magnitude == ^Rhs;
}
friend consteval bool @\exposidnc{is-positive-integral-power}@(magnitude);
Expand All @@ -1614,7 +1617,7 @@
represents the product of its template arguments.
\begin{itemdecl}
friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude m1, @\libconcept{Magnitude}@ auto m2);
friend consteval @\libconcept{Magnitude}@ auto operator*(magnitude lhs, @\libconcept{Magnitude}@ auto rhs);
\end{itemdecl}
\begin{itemdescr}
Expand All @@ -1624,7 +1627,7 @@
\item
If the type of a parameter is \tcode{magnitude<>}, returns the other parameter.
\item
Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{m1} \times \tcode{m2}$.
Otherwise, returns an unspecified model of \libconcept{Magnitude} equal to $\tcode{lhs} \times \tcode{rhs}$.
\end{itemize}
\end{itemdescr}
Expand Down

0 comments on commit 49cb247

Please sign in to comment.