[#mp_units-operator_star-004] = xref:mp_units.adoc[mp_units]::operator* :relfileprefix: ../ :mrdocs: `scaled_unit` specializations have priority in this operation. This means that the library framework prevents passing it as an element to the `derived_unit`. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation. == Synopsis Declared in `<mp‐units/framework/dimension.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/Dimension.adoc[Dimension] Lhs, xref:mp_units/Dimension.adoc[Dimension] Rhs> [[nodiscard]] consteval xref:mp_units/Dimension.adoc[Dimension] auto operator*( Lhs lhs, Rhs rhs); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:mp_units/base_dimension.adoc[base_dimension], declared inside an implementation-defined base class: it can be found only through argument-dependent lookup. ==== == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The left operand | *rhs* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#