[#BloombergLP-balcl-operator_eq-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balcl.adoc[balcl]::operator== :relfileprefix: ../../ :mrdocs: Equality operators == Synopses Declared in `<balcl_commandline.h>` Return `true` if the `type` of the specified `lhs` and `rhs` are equal, and return `false` if they are not equal. Two `OptionValue_NullOf` objects are equal when their `type` attributes are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-0b1.adoc[operator==]( xref:BloombergLP/balcl/OptionValue_NullOf.adoc[OptionValue_NullOf] const& lhs, xref:BloombergLP/balcl/OptionValue_NullOf.adoc[OptionValue_NullOf] const& rhs); ---- [.small]#xref:BloombergLP/balcl/operator_eq-0b1.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `OptionValue` objects have the same value if they have the same type, and (if the type is not `e_VOID`) the value of that type (as accessed through `the*` methods) is the same. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-0d.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. Note that two objects constructed from copies of the same constraint will _not_ be identical. (Use `constraint`/`setConstraint` to ensure that both constraints are the same.) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-07.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-0a.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-0b2.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `Option` objects have the same value if their underlying `OptionInfo` objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-09.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two `CommandLine_SchemaData` objects have the same value if their `type` attributes are the same and if their `name` attributes compare equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-06.adoc[operator==]( xref:BloombergLP/balcl/CommandLine_SchemaData.adoc[CommandLine_SchemaData] const& lhs, xref:BloombergLP/balcl/CommandLine_SchemaData.adoc[CommandLine_SchemaData] const& rhs); ---- [.small]#xref:BloombergLP/balcl/operator_eq-06.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-0e.adoc[operator==]( 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..._]# Return `true` if the specified `lhs` and `rhs` have the same value, and `false` otherwise. Two command‐line arguments have the same value if and only if they are both parsed successfully and have the same command‐line specifications and the same values for flags, options, and non‐option arguments. Note that two identical copies built with the same option table, but unparsed, are _not_ equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/balcl/operator_eq-01.adoc[operator==]( 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#