Deprecated. Returns this quantity re‐expressed with another representation type, truncating if inexact.

Synopsis

Declared in <mp‐units/framework/quantity.h>

template<RepresentationOf<quantity_spec> ToRep>
requires std::constructible_from<ToRep, rep>
[[deprecated("2.6.0: use `in<Rep>(policy)` with a rounding policy (e.g. `truncated`) instead"), nodiscard]]
constexpr
QuantityOf<quantity_spec> auto
force_in() const;
Warning

Deprecated: 2.6.0: use `in<Rep>(policy)` with a rounding policy (e.g. `truncated`) instead. Use of this entity is allowed but discouraged.

Return Value

The equivalent quantity with representation type ToRep.

Note

The return value should not be discarded.

Created with MrDocs