mp_units::quantity_point::try_make¶
Synopsis¶
Declared in <mp-units/framework/quantity_point.h>
template<typename QP>
requires(QuantityPoint<QP> || detail::QuantityPointLike<QP>) &&
requires(const QP& qp) { is_within_bounds(qp); }
[[nodiscard]] constexpr static std::expected<quantity_point, bounds_violation> try_make(
QP const& qp);
Return Value¶
Note
The return value should not be discarded.