OpenTTD Source  20241108-master-g80f628063a
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
TbitposType of the position variable.
TbitsetType of the bitset value.

Definition at line 301 of file bitmath_func.hpp.


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