quantity_ref_from overloads
Synopses
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;
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;
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;
Return Value
-
A reference to the stored offset quantity.
-
A const reference to the stored offset quantity.
Parameters
Name |
Description |
po |
a point origin equal to |
Created with MrDocs