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