[#BloombergLP-bdlb-BitStringUtil-areEqual-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::areEqual
:relfileprefix: ../../../
:mrdocs:

`areEqual` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;bitstringutil&period;h&gt;`

Return `true` if the specified low&hyphen;order `numBits` in the specified `bitString1` are bitwise equal to the corresponding bits in the specified `bitString2`, and `false` otherwise&period; The behavior is undefined unless both `bitString1` and `bitString2` have a length of at least `numBits`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlb/BitStringUtil/areEqual-06.adoc[areEqual](
    uint64&lowbar;t const* bitString1,
    uint64&lowbar;t const* bitString2,
    std::size&lowbar;t numBits);
----

[.small]#xref:BloombergLP/bdlb/BitStringUtil/areEqual-06.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `numBits` beginning at the specified `index1` in the specified `bitString1` are bitwise equal to the `numBits` beginning at the specified `index2` in the specified `bitString2`, and `false` otherwise&period; The behavior is undefined unless `bitString1` has a length of at least `index1 &plus; numBits` and `bitString2` has a length of at least `index2 &plus; numBits`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
xref:BloombergLP/bdlb/BitStringUtil/areEqual-01.adoc[areEqual](
    uint64&lowbar;t const* bitString1,
    std::size&lowbar;t index1,
    uint64&lowbar;t const* bitString2,
    std::size&lowbar;t index2,
    std::size&lowbar;t numBits);
----

[.small]#xref:BloombergLP/bdlb/BitStringUtil/areEqual-01.adoc[_» more&period;&period;&period;_]#


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