sqrt
overloads
<mp-units/framework/dimension.h>
[[nodiscard]]
consteval
Unit auto
sqrt(auto d);
» more...
[[nodiscard]]
consteval
/* implementation-defined */
sqrt(reference);
» more...
Computes the square root of a quantity
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;
» more...
Name | Description |
---|---|
d | Dimension being the base of the operation |
q | Quantity specification being the base of the operation |
u | Unit being the base of the operation |