As the title says, TBitArray<>
does not have an exact type, so does it mean that this method can accept any such as TBitArray<int32>
, TBitArray<float>
, ... as parameters?
FORCEINLINE bool HasAll(const TBitArray<>& Other) const
{
FConstWordIterator ThisIterator(*this);
FConstWordIterator OtherIterator(Other);
while (ThisIterator || OtherIterator)
{
const uint32 A = ThisIterator ? ThisIterator.GetWord() : 0;
const uint32 B = OtherIterator ? OtherIterator.GetWord() : 0;
if ((A & B) != B)
{
return false;
}
++ThisIterator;
++OtherIterator;
}
return true;
}
And what difference with this code
template<class T>
FORCEINLINE bool HasAll(const TBitArray<T>& Other) const