The cdc_treap_iter is a struct and functions that provide a treap iterator.
More...
The cdc_treap_iter is a struct and functions that provide a treap iterator.
◆ cdc_treap_iter_next()
Advances the iterator to the next element in the treap.
- Parameters
-
◆ cdc_treap_iter_prev()
Advances the iterator to the previous element in the treap.
- Parameters
-
◆ cdc_treap_iter_has_next()
Returns true if there is at least one element ahead of the iterator, i.e. the iterator is not at the back of the container; otherwise returns false.
- Parameters
-
- Returns
- true if there is at least one element ahead of the iterator, i.e. the iterator is not at the back of the container; otherwise returns false.
◆ cdc_treap_iter_has_prev()
Returns true if there is at least one element behind the iterator, i.e. the iterator is not at the front of the container; otherwise returns false.
- Parameters
-
- Returns
- true if there is at least one element behind the iterator, i.e. the iterator is not at the front of the container; otherwise returns false.
◆ cdc_treap_iter_key()
Returns an item's key.
- Parameters
-
- Returns
- the item's key.
◆ cdc_treap_iter_value()
Returns an item's value.
- Parameters
-
- Returns
- the item's value.
◆ cdc_treap_iter_key_value()
Returns a pair, where first - key, second - value.
- Parameters
-
- Returns
- pair, where first - key, second - value.
◆ cdc_treap_iter_is_eq()
Returns false if the iterator |it1| equal to the iterator |it2|, otherwise returns false.
- Parameters
-
[in] | it1 | - iterator |
[in] | it2 | - iterator |
- Returns
- false if the iterator |it1| equal to the iterator |it2|, otherwise returns false.