Return whether the low‐order bits of two bit strings are equal.
Synopsis
Declared in <bdlb_bitstringutil.h>
static
bool
areEqual(
uint64_t const* bitString1,
uint64_t const* bitString2,
std::size_t numBits);
Description
Return true if the specified low‐order numBits in the specified bitString1 are bitwise equal to the corresponding bits in the specified bitString2, and false otherwise. The behavior is undefined unless both bitString1 and bitString2 have a length of at least numBits.
Return Value
true if the compared bits are equal, and false otherwise
Parameters
Name |
Description |
bitString1 |
first bit string |
bitString2 |
second bit string |
numBits |
number of low‐order bits to compare |
Created with MrDocs