Iterator for the keys mapped to a given value. It works like a graph item iterator, it can be converted to the key type of the map, incremented with ++
operator, and if the iterator leaves the last valid key, it will be equal to INVALID
.
#include <lemon/maps.h>
Inherits Key.
Public Member Functions | |
ItemIt (const IterableBoolMap &map, bool value) | |
Creates an iterator with a value. More... | |
ItemIt (Invalid) | |
Invalid constructor & conversion. More... | |
ItemIt & | operator++ () |
Increment operator. More... | |
|
inline |
Creates an iterator with a value. It iterates on the keys mapped to the given value.
map | The IterableBoolMap. |
value | The value. |
This constructor initializes the iterator to be invalid.
|
inline |
Increment operator.