Custom iterator for BitVector.
More...
#include <bit_vector.hpp>
|
|
using | iterator_category = std::forward_iterator_tag |
| | Iterator category.
|
| |
|
using | differece_type = std::ptrdiff_t |
| | Difference type.
|
| |
|
using | value_type = BitAccess |
| | Value type is not bit but the BitAccess object used for access.
|
| |
|
using | pointer = value_type* |
| | Pointer type.
|
| |
|
using | reference = value_type& |
| | Reference type.
|
| |
Custom iterator for BitVector.
◆ Iterator()
| pasta::BitVector::Iterator::Iterator |
( |
uint64_t *const | data, |
|
|
size_t const | position ) |
|
inlinenoexcept |
Constructor. Creates Iterator pointing at a bit and holds pointer to data.
- Parameters
-
| data | Pointer to the beginning of the BitVector. |
| position | Position the iterator is pointing at. |
◆ operator*()
| reference pasta::BitVector::Iterator::operator* |
( |
| ) |
|
|
inlinenoexcept |
Iterator is dereferenceable. Obtain value it is pointing at.
- Returns
- Reference to the bit the iterator points at.
◆ operator->()
| pointer pasta::BitVector::Iterator::operator-> |
( |
| ) |
|
|
inlinenoexcept |
Iterator is dereferenceable. Obtain value it is pointing at.
- Returns
- Pointer to the bit the iterator points at.
The documentation for this struct was generated from the following file: