quantity_ref_from overloads
Declared in <mp-units/framework/quantity_point.h>
Returns a mutable reference to the underlying quantity, measured from point_origin.
template<PointOrigin PO2>
requires (PO2{} == point_origin)
[[nodiscard]]
constexpr
quantity_type&
quantity_ref_from(PO2 po) & noexcept;
» more...
Returns a const reference to the underlying quantity, measured from point_origin.
template<PointOrigin PO2>
requires (PO2{} == point_origin)
[[nodiscard]]
constexpr
quantity_type const&
quantity_ref_from(PO2 po) const & noexcept;
» more...
Deleted overload that prevents forming a reference into a temporary quantity point.
template<PointOrigin PO2>
requires (PO2{} == point_origin)
constexpr
quantity_type const&&
quantity_ref_from(PO2 po) const && noexcept = delete;
» more...
| Name | Description |
|---|---|
| po | a point origin equal to point_origin |