[#mp_units-operator_eq-07] = xref:mp_units.adoc[mp_units]::operator== :relfileprefix: ../ :mrdocs: Checks whether two references are equal == Synopsis Declared in `<mp‐units/framework/reference.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval bool operator==( xref:mp_units/reference-0b2.adoc[reference] r1, xref:mp_units/reference-0b2.adoc[reference<Q2, U2>] r2); ---- == Return Value `true` if both the quantity specifications and the units are equal [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *r1* | the first reference to compare | *r2* | the other reference to compare against |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#