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

Equality operators

== Synopses

Declared in `&lt;balcl&lowbar;commandline&period;h&gt;`

Return `true` if the `type` of the specified `lhs` and `rhs` are equal, and return `false` if they are not equal&period; Two `OptionValue&lowbar;NullOf` objects are equal when their `type` attributes are equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balcl/operator_eq-0b1.adoc[operator&equals;&equals;](
    xref:BloombergLP/balcl/OptionValue_NullOf.adoc[OptionValue&lowbar;NullOf] const& lhs,
    xref:BloombergLP/balcl/OptionValue_NullOf.adoc[OptionValue&lowbar;NullOf] const& rhs);
----

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

Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period; Two `OptionValue` objects have the same value if they have the same type, and (if the type is not `e&lowbar;VOID`) the value of that type (as accessed through `the&ast;` methods) is the same&period;


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `TypeInfo` objects have the same value if their associated options have the same type, both objects do not have a linked variable or both refer to the same variable, and both do not have a constraint or both refer to the same constraint&period; Note that two objects constructed from copies of the same constraint will _not_ be identical&period; (Use `constraint`&sol;`setConstraint` to ensure that both constraints are the same&period;)


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two objects of type `OccurrenceInfo` have the same value if and only if they have the same occurrence type and either both do not have a default value, or their respective default values have the same type and value&period;


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `OptionInfo` objects have the same value if they have the same tag string, the same name, the same description, the same type info, and the same occurrence info values&period;


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `Option` objects have the same value if their underlying `OptionInfo` objects have the same value&period;


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `CommandLine&lowbar;SchemaData` objects have the same value if their `type` attributes are the same and if their `name` attributes compare equal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/balcl/operator_eq-06.adoc[operator&equals;&equals;](
    xref:BloombergLP/balcl/CommandLine_SchemaData.adoc[CommandLine&lowbar;SchemaData] const& lhs,
    xref:BloombergLP/balcl/CommandLine_SchemaData.adoc[CommandLine&lowbar;SchemaData] const& rhs);
----

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two `CommandLineOptionsHandle` objects have the same value if they have the same `numOptions` and each of those options have the same `name`, `type`, and `value` or are in the null state&period;


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

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

Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise&period; Two command&hyphen;line arguments have the same value if and only if they are both parsed successfully and have the same command&hyphen;line specifications and the same values for flags, options, and non&hyphen;option arguments&period; Note that two identical copies built with the same option table, but unparsed, are _not_ equal&period;


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

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


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