Skip to content

Commit

Permalink
[quantities] Update representation_values
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Nov 28, 2024
1 parent c3f7642 commit 5b420be
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/api_reference/src/quantities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,10 @@
template<typename Rep>
constexpr bool is_tensor = false;

// \ref{qty.val.traits}, quantity values
// \ref{qty.val.traits}, values

template<typename Rep>
struct quantity_values;
struct representation_values;

// \ref{qty.rep.cpos}, customization point objects

Expand Down Expand Up @@ -3447,17 +3447,17 @@
and have type \tcode{const bool}.
\end{itemdescr}
\rSec3[qty.val.traits]{Quantity values}
\rSec3[qty.val.traits]{Values}
\pnum
\tcode{quantity} and \tcode{quantity_point} use \tcode{quantity_values}
\tcode{quantity} and \tcode{quantity_point} use \tcode{representation_values}
to construct special values of its representation type.
\begin{codeblock}
namespace mp_units {
template<typename Rep>
struct @\libglobal{quantity_values}@ : std::chrono::duration_values<Rep> {
struct @\libglobal{representation_values}@ : std::chrono::duration_values<Rep> {
static constexpr Rep one() noexcept;
};
Expand All @@ -3466,7 +3466,7 @@
\pnum
The requirements on \tcode{std::chrono::duration_values<Rep>}\irefcpp{time.traits.duration.values}
also apply to \tcode{quantity_values<Rep>}.
also apply to \tcode{representation_values<Rep>}.
\begin{itemdecl}
static constexpr Rep one() noexcept;
Expand Down Expand Up @@ -4155,13 +4155,13 @@
\pnum
\returns
\tcode{\{quantity_values<rep>::\placeholdernc{F}(), R\}}.
\tcode{\{representation_values<rep>::\placeholdernc{F}(), R\}}.
\pnum
\remarks
The expression in the \fakegrammarterm{requires-clause} is equivalent to:
\begin{codeblock}
requires { quantity_values<rep>::@\placeholdernc{F}@(); }
requires { representation_values<rep>::@\placeholdernc{F}@(); }
\end{codeblock}
\end{itemdescr}
Expand Down Expand Up @@ -4574,7 +4574,7 @@
\expects
If \tcode{@} is \tcode{\%=} or \tcode{/=}, then
\begin{codeblock}
@\placeholdernc{TO-NUMERICAL-VALUE}@(rhs) != quantity_values<RhsRep>::zero()
@\placeholdernc{TO-NUMERICAL-VALUE}@(rhs) != representation_values<RhsRep>::zero()
\end{codeblock}
is \tcode{true}.
Expand Down

0 comments on commit 5b420be

Please sign in to comment.