Deprecated. Returns this quantity point re-expressed in another unit, truncating if inexact.
Declared in <mp-units/framework/quantity_point.h>
template<UnitOf<quantity_spec> ToU>
requires detail::ExplicitlyCastable<unit, ToU{}, rep>
[[deprecated("2.6.0: use `in(unit, policy)` with a rounding policy (e.g. `truncated`) instead"), nodiscard]]
constexpr
QuantityPointOf<quantity_spec> auto
force_in(ToU to_u) const;
Deprecated: 2.6.0: use `in(unit, policy)` with a rounding policy (e.g. `truncated`) instead. Use of this entity is allowed but discouraged.
The equivalent quantity point expressed in to_u.
The return value should not be discarded.
| Name | Description |
|---|---|
| to_u | the target unit |