Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TBitArray
Description
Returns true if Other contains all the same set bits as this, accounting for differences in length. Similar to operator== but can handle different length arrays by zero or one-filling missing bits.
| Name | CompareSetBits |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/BitArray.h |
| Include Path | #include "Containers/BitArray.h" |
template<typename OtherAllocator>
bool CompareSetBits
(
const TBitArray < OtherAllocator > & Other,
const bool bMissingBitValue
) const
true if this array matches Other, including any missing bits, false otherwise
Parameters
| Name | Remarks |
|---|---|
| Other | The array to compare against |
| bMissingBitValue | The value to use for missing bits when considering bits that are outside the range of either array |