[#mp_units-operator_eq-01] = xref:mp_units.adoc[mp_units]::operator== :relfileprefix: ../ :mrdocs: Equality operator == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<quantity> Q, auto R2, typename Rep2> requires requires { typename std::common_type_t<quantity, quantity<R2, Rep2>>; } && std::equality_comparable<typename std::common_type_t<quantity, quantity<R2, Rep2>>::rep> [[nodiscard]] constexpr bool operator==( Q const& lhs, xref:mp_units/quantity-01.adoc[quantity<R2, Rep2>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#