[#BloombergLP-bdlb-operator_eq-0101] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::operator== :relfileprefix: ../../ :mrdocs: Grant the equality comparison operator access to this class's private members. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VARIANT_TYPES> bool operator==( xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<VARIANT_TYPES>] const& lhs, xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<VARIANT_TYPES>] const& rhs); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:BloombergLP/bdlb/VariantImp_AllocatorBase.adoc[VariantImp_AllocatorBase], declared only inside that class: it can be found only through argument-dependent lookup. ==== == 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]#