cbrt overloads
Declared in <mp-units/framework/reference.h>
Computes the cubic root of a reference
[[nodiscard]]
consteval
/* implementation-defined */
cbrt(reference r);
» more...
Computes the cubic root of a quantity
template<
auto R,
typename Rep>
requires requires(Rep v) { cbrt(v); }
#if MP_UNITS_HOSTED
|| requires(Rep v) { std::cbrt(v); }
[[nodiscard]]
constexpr
quantity<cbrt(R), Rep>
cbrt(quantity<R, Rep> const& q) noexcept;
» more...
The return value should not be discarded.
| Name | Description |
|---|---|
| r | Reference being the base of the operation |
| q | Quantity being the base of the operation |