template<typename DataType, bool ReturnsIndex = true, typename ReturnType = DataType, typename StorageType = typename ezBitIteratorStorage<DataType>::Type>
struct ezBitIterator< DataType, ReturnsIndex, ReturnType, StorageType >
Configurable bit iterator. Allows for iterating over the bits in an integer, returning either the bit index or value.
- Template Parameters
-
DataType | The type of data that is being iterated over. |
ReturnsIndex | If set, returns the index of the bit. Otherwise returns the value of the bit, i.e. EZ_BIT(value). |
ReturnType | Returned value type of the iterator. Defaults to same as DataType. |
StorageType | The storage type that the bit operations are performed on (either ezUInt32 or ezUInt64). Auto-computed. |