[#BloombergLP-balm-operator_eq-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;balm&lowbar;integermetric&period;h&gt;`

Return `true` if the specified `lhs` and `rhs` metric ids have the same value and `false` otherwise&period; Two metric ids have the same value if they each hold the address of the same `MetricDescription` object, or both addresses are 0&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0f.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& lhs,
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0f.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` metric records have the same value and `false` otherwise&period; Two records have the same value if they have the same values for their `metricId`, `count`, `total`, `min`, and `max` attributes, respectively&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0b.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord] const& lhs,
    xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0b.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` metrics have the same value and `false` otherwise&period; Two metrics have the same value if they record measurements using the same collector object or if they both have a null collector (i&period;e&period;, `collector()` is 0)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-02.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/Metric.adoc[Metric] const& lhs,
    xref:BloombergLP/balm/Metric.adoc[Metric] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-02.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` metric format specs have the same value, and `false` otherwise&period; Two format specs have the same value if they have the same values for their `scale` and `format` attributes, respectively&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0ea.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricFormatSpec.adoc[MetricFormatSpec] const& lhs,
    xref:BloombergLP/balm/MetricFormatSpec.adoc[MetricFormatSpec] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0ea.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` metric formats have the same value, and `false` otherwise&period; Two metric formats have the same value if they have the same value for `formatSpec` for each of the enumerated publication types&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0c.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricFormat.adoc[MetricFormat] const& lhs,
    xref:BloombergLP/balm/MetricFormat.adoc[MetricFormat] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0c.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` integer metrics have the same value and `false` otherwise&period; Two integer metrics have the same value if they record measurements using the same integer collector object or if they both have null collectors (i&period;e&period;, `collector()` is 0)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0eb.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/IntegerMetric.adoc[IntegerMetric] const& lhs,
    xref:BloombergLP/balm/IntegerMetric.adoc[IntegerMetric] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0eb.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` sample groups have the same value, and `false` otherwise&period; Two sample groups have the same value if the respective record sequence&hyphen;addresses, number of records, and elapsed time are the same&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-08.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& lhs,
    xref:BloombergLP/balm/MetricSampleGroup.adoc[MetricSampleGroup] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-08.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` samples have the same value, and `false` otherwise&period; Two samples have the same value if they have the same timestamp value, contain the same number of record groups, and if the respective groups of records at each index position have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balm/operator_eq-0d.adoc[operator&equals;&equals;](
    xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& lhs,
    xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& rhs);
----

[.small]#xref:BloombergLP/balm/operator_eq-0d.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
