|
ADS
Algorithms and Data Structures
|
the random-access constant iterator on the items T of the owner O, read by ( *o )[ i ] More...
#include <ADS/succinct/BitVector.h>
Public types | |
| using | value_type = T |
| the type of an item | |
| using | reference = T |
| an item, returned by value | |
| using | difference_type = std::ptrdiff_t |
| the type of the distance of two places | |
| using | iterator_concept = std::random_access_iterator_tag |
| a random-access iterator, read in place | |
| using | iterator_category = std::input_iterator_tag |
| an input iterator for the algorithms of before C++20, since its items are returned by value | |
Public member functions | |
| SubscriptIterator (void)=default | |
| an iterator on no owner | |
| SubscriptIterator (const O *o, std::size_t i) | |
| the iterator on the item \( i \) of *o | |
| reference | operator* (void) const |
| the item | |
| reference | operator[] (difference_type k) const |
| the item \( k \) places ahead | |
| SubscriptIterator & | operator++ (void) |
| the next item | |
| SubscriptIterator & | operator-- (void) |
| the previous item | |
| SubscriptIterator | operator++ (int) |
| the next item, returning the iterator before it | |
| SubscriptIterator | operator-- (int) |
| the previous item, returning the iterator before it | |
| SubscriptIterator & | operator+= (difference_type k) |
| \( k \) places ahead | |
| SubscriptIterator & | operator-= (difference_type k) |
| \( k \) places back | |
| bool | operator== (const SubscriptIterator &o) const |
| whether the two iterators are on the same place | |
| std::strong_ordering | operator<=> (const SubscriptIterator &o) const |
| the order of the places of the two iterators | |
| std::size_t | index (void) const |
| the place of the item | |
Friends | |
| SubscriptIterator | operator+ (SubscriptIterator a, difference_type k) |
| the iterator \( k \) places after \( a \) | |
| SubscriptIterator | operator+ (difference_type k, SubscriptIterator a) |
| the iterator \( k \) places after \( a \) | |
| SubscriptIterator | operator- (SubscriptIterator a, difference_type k) |
| the iterator \( k \) places before \( a \) | |
| difference_type | operator- (const SubscriptIterator &a, const SubscriptIterator &b) |
| the places from \( b \) to \( a \) | |
the random-access constant iterator on the items T of the owner O, read by ( *o )[ i ]
| using ADS::SubscriptIterator< O, T >::difference_type = std::ptrdiff_t |
the type of the distance of two places
| using ADS::SubscriptIterator< O, T >::iterator_category = std::input_iterator_tag |
an input iterator for the algorithms of before C++20, since its items are returned by value
| using ADS::SubscriptIterator< O, T >::iterator_concept = std::random_access_iterator_tag |
a random-access iterator, read in place
| using ADS::SubscriptIterator< O, T >::reference = T |
an item, returned by value
| using ADS::SubscriptIterator< O, T >::value_type = T |
the type of an item
|
default |
an iterator on no owner
|
inline |
the iterator on the item \( i \) of *o
|
inlinenodiscard |
the place of the item
|
inline |
the item
|
inline |
the next item, returning the iterator before it
|
inline |
the next item
|
inline |
\( k \) places ahead
|
inline |
the previous item, returning the iterator before it
|
inline |
the previous item
|
inline |
\( k \) places back
|
inline |
the order of the places of the two iterators
|
inline |
whether the two iterators are on the same place
|
inline |
the item \( k \) places ahead
|
friend |
the iterator \( k \) places after \( a \)
|
friend |
the iterator \( k \) places after \( a \)
|
friend |
the places from \( b \) to \( a \)
|
friend |
the iterator \( k \) places before \( a \)