mp_units::quantity_point::quantity_point¶
Default-constructs a point whose origin has bounds, own or inherited, at the origin itself.
Synopsis¶
Declared in <mp-units/framework/quantity_point.h>
[[nodiscard]] constexpr quantity_point()
requires(detail::any_ancestor_has_bounds(PO) &&
detail::origin_within_bounds<PO, quantity_type>());
Description¶
Default-initialization and value-initialization both store a zero delta, which is the origin itself, so a bounded point never holds an indeterminate value. The constructor is offered only where the origin lies within the range of the policy.
Return Value¶
Note
The return value should not be discarded.