Template Function wt::quantity_cast

Function Documentation

template<Quantity Q, QuantitySpec fromU, Numeric fromRep>
inline constexpr auto wt::quantity_cast(const quantity<fromU, fromRep> &q) noexcept

Explicit representation or quantity spec cast. Note! forces a (potentially lossy) unit cast first and then does the representation cast.