TBitArray::CompareSetBits

Returns true if Other contains all the same set bits as this, accounting for differences in length.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/BitArray.h

Include

#include "Containers/BitArray.h"

Syntax

bool CompareSetBits
(
    const TBitArray & Other,
    const bool bMissingBitValue
) const

Remarks

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.

Returns

true if this array matches Other, including any missing bits, false otherwise

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss