![]() |
Bitcoin Core
28.1.0
P2P Digital Currency
|
Iterator type returned by begin(), which efficiently iterates all 1 positions. More...
Public Member Functions | |
| Iterator ()=delete | |
| Do not allow external code to construct an Iterator. More... | |
| constexpr | Iterator (const Iterator &) noexcept=default |
| constexpr Iterator & | operator= (const Iterator &) noexcept=default |
| constexpr Iterator & | operator++ () noexcept |
| Progress to the next 1 bit (only if != IteratorEnd). More... | |
| constexpr unsigned | operator* () const noexcept |
| Get the current bit position (only if != IteratorEnd). More... | |
Private Member Functions | |
| constexpr | Iterator (I val) noexcept |
| Last reported 1 position (if m_pos != 0). More... | |
Private Attributes | |
| I | m_val |
| The original integer's remaining bits. More... | |
| unsigned | m_pos |
Friends | |
| class | IntBitSet |
| constexpr friend bool | operator== (const Iterator &a, const IteratorEnd &) noexcept |
| Test whether we are done (can only compare with IteratorEnd). More... | |
Iterator type returned by begin(), which efficiently iterates all 1 positions.
|
inlineprivatenoexcept |
|
delete |
Do not allow external code to construct an Iterator.
|
defaultnoexcept |
|
inlinenoexcept |
Get the current bit position (only if != IteratorEnd).
|
inlinenoexcept |
Progress to the next 1 bit (only if != IteratorEnd).
|
defaultnoexcept |
|
friend |
Test whether we are done (can only compare with IteratorEnd).
|
private |
|
private |
1.8.14