Skip to content

mp_units::cbrt

cbrt overloads

Synopses

Declared in <mp-units/framework/dimension.h>

[[nodiscard]] consteval Dimension auto cbrt(auto d);

» more...

[[nodiscard]] consteval Dimension auto cbrt(auto d);

» more...

[[nodiscard]] consteval Dimension auto cbrt(auto d);

» more...

Computes the cubic root of a reference

template<std::same_as<reference> R>
[[nodiscard]] consteval /* implementation-defined */ cbrt(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); }
#endif
[[nodiscard]] constexpr quantity<cbrt(R), Rep> cbrt(quantity<R, Rep> const& q) noexcept;

» more...

Return Value

Quantity The result of computation

Note

The return value should not be discarded.

Parameters

NameDescription
qQuantity being the base of the operation