mp_units::cbrt

cbrt overloads

Synopses

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...

Return Value

  • The result of computation
  • Quantity The result of computation

NOTE

The return value should not be discarded.

Parameters

NameDescription
rReference being the base of the operation
qQuantity being the base of the operation