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