<mp-units/math.h>
template<
auto R,
typename Rep>
requires requires(Rep v) { abs(v); } || requires(Rep v) { std::abs(v); }
[[nodiscard]]
constexpr
quantity<R, Rep>
abs(quantity<R, Rep> const& q) noexcept;
Name | Description |
---|---|
q | Quantity being the base of the operation |