BloombergLP::bdlb::BitStringUtil::areEqual

areEqual overloads

Synopses

Declared in <bdlb_bitstringutil.h>

Return whether the low-order bits of two bit strings are equal.

static
bool
areEqual(
    uint64_t const* bitString1,
    uint64_t const* bitString2,
    std::size_t numBits);
» more...

Return whether corresponding bit ranges of two bit strings are equal.

static
bool
areEqual(
    uint64_t const* bitString1,
    std::size_t index1,
    uint64_t const* bitString2,
    std::size_t index2,
    std::size_t numBits);
» more...

Return Value

true if the compared bits are equal, and false otherwise

Parameters

NameDescription
bitString1first bit string
bitString2second bit string
numBitsnumber of low-order bits to compare
index1starting bit index in bitString1
index2starting bit index in bitString2