[#BloombergLP-bslalg-TypeTraitBitwiseEqualityComparable] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::TypeTraitBitwiseEqualityComparable :relfileprefix: ../../ :mrdocs: Objects of a type with this trait can be compared for equality using `memcmp`. If two objects compare equal, then `memcmp` returns 0, otherwise it returns non‐zero. Classes with this traits are assumed to have no padding and to be bit‐wise copyable (see the `TypeTraitBitwiseCopyable` trait). Undefined behavior may result if this trait is assigned to a type that does not have an `operator==` or whose `operator==` implementation may return different from comparing the footprints with `memcmp` . == Synopsis Declared in `<bslalg_typetraitbitwiseequalitycomparable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypeTraitBitwiseEqualityComparable; ---- == Types [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslalg/TypeTraitBitwiseEqualityComparable/Metafunction.adoc[`Metafunction`] | Metafunction evaluating to `true_type` if `TYPE` is bitwise equality comparable; otherwise, `false_type`. | xref:BloombergLP/bslalg/TypeTraitBitwiseEqualityComparable/NestedTraitDeclaration.adoc[`NestedTraitDeclaration`] | This class template ties the `bslalg::TypeTraitBitwiseEqualityComparable` trait tag to the `bslmf::IsBitwiseEqualityComparable` trait metafunction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#