OpenTTD Source: SetBitIterator< Tbitpos, Tbitset > Struct Template Reference

OpenTTD Source 12.2

Data Structures | Public Member Functions | Private Attributes
SetBitIterator< Tbitpos, Tbitset > Struct Template Reference

Iterable ensemble of each set bit in a value. More...

`#include <bitmath_func.hpp>`

## Data Structures
struct | Iterator

## Public Member Functions
| SetBitIterator (Tbitset bitset)
Iterator | begin ()
Iterator | end ()
bool | empty ()

## Private Attributes
Tbitset | bitset

## Detailed Description

### template<typename Tbitpos = uint, typename Tbitset = uint>
struct SetBitIterator< Tbitpos, Tbitset >

Iterable ensemble of each set bit in a value.

Template Parameters

  Tbitpos | Type of the position variable.
  Tbitset | Type of the bitset value.

Definition at line 329 of file bitmath_func.hpp.

The documentation for this struct was generated from the following file:

- src/core/bitmath_func.hpp