mp_units::quantity::operator=

Assigns a new numerical value to *this.

Synopsis

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

template<typename FwdValue>
requires detail::ImplicitFromNumber<reference> && detail::RepAssignableFrom<rep, FwdValue>
constexpr
quantity&
operator=(FwdValue&& val);

Return Value

*this

Parameters

NameDescription
valthe numerical value to assign