mp_units::cbrt¶
cbrt overloads
Synopses¶
Declared in <mp-units/framework/dimension.h>
[[nodiscard]] consteval Dimension auto cbrt(auto d);
[[nodiscard]] consteval Dimension auto cbrt(auto d);
[[nodiscard]] consteval Dimension auto cbrt(auto d);
Computes the cubic root of a reference
template<std::same_as<reference> R>
[[nodiscard]] consteval /* implementation-defined */ cbrt(R);
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); }
#endif
[[nodiscard]] constexpr quantity<cbrt(R), Rep> cbrt(quantity<R, Rep> const& q) noexcept;
Return Value¶
Quantity The result of computation
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| q | Quantity being the base of the operation |