[#BloombergLP-balm-operator_eq-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::operator== :relfileprefix: ../../ :mrdocs: Return `true` if the specified `lhs` and `rhs` metrics have the same value and `false` otherwise. == Synopsis Declared in `<balm_metric.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( xref:BloombergLP/balm/Metric.adoc[Metric] const& lhs, xref:BloombergLP/balm/Metric.adoc[Metric] const& rhs); ---- == Description Two metrics have the same value if they record measurements using the same collector object or if they both have a null collector (i.e., `collector()` is 0). == Return Value `true` if `lhs` and `rhs` have the same value, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand operand | *rhs* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#