mp_units::delta

Constructs a quantity of reference R from a raw representation value

Synopsis

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

template<Reference auto R>
[[nodiscard]]
constexpr
quantity<R{}, Rep>
delta(FwdRep&& lhs);

NOTE

This function is defined as an Algorithm Function Object (AFO).

Return Value

A quantity of reference R holding lhs

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe raw representation value to wrap in a quantity