Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TBitArray
Description
Finds the first occurrence of the specified value (true/false) in the array, starting from the given bit index, and returns the bit index. If the specified value is not found from the given index, INDEX_NONE is returned.
StartIndex is expected to be in the inclusive range [0, Num()].
| Name | FindFrom |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/BitArray.h |
| Include Path | #include "Containers/BitArray.h" |
template<typename IndexType>
int32 FindFrom
(
bool bValue,
IndexType StartIndex
) const
The index of the first occurrence of the specified value (true/false) from StartIndex, or INDEX_NONE if not found.
Parameters
| Name | Remarks |
|---|---|
| bValue | The value (true/false) to search for. |
| StartIndex | The index to start the search from. |