Skip to content

mp_units::quantity_point::delta_from_zero

Synopsis

Declared in <mp-units/framework/quantity_point.h>

[[nodiscard]] constexpr quantity_type const& delta_from_zero() const noexcept
  requires(
    PO == default_point_origin(R) ||
    detail::unsatisfied<
      "'delta_from_zero()' needs a point measured from the natural origin, not from '{}'">(
      detail::type_name(PO)));

Return Value

Note

The return value should not be discarded.