Deprecated constructor of a quantity from a representation value and an offset‐unit reference

Synopsis

Declared in <mp‐units/framework/reference.h>

template<
    typename FwdRep,
    Reference R,
    RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
requires detail::OffsetUnit<decltype(get_unit(R{}))>
[[deprecated("2.3.0: References using offset units (e.g., temperatures) should be constructed with the `delta` or `point` helpers")]]
constexpr
auto
operator*(
    FwdRep&& lhs,
    R r);
Warning

Deprecated: 2.3.0: References using offset units (e.g., temperatures) should be constructed with the `delta` or `point` helpers. Use of this entity is allowed but discouraged.

Return Value

quantity of reference r holding the value of lhs

Parameters

Name

Description

lhs

representation value to become the quantity's numerical value

r

offset‐unit reference defining the quantity specification and unit

Created with MrDocs