|
template <class Map, class K, class V>
struct MapKVRange
|
Map |
The class that is derivative of AMap class. |
|
K |
Type of keys with exactly the same requirements as for AMap container |
|
T |
Type of values with exactly the same requirements as for AMap container. |
MapKVRange is a wrapper designed to provide a range-based iteration interface for custom AMap derivative containers. It allows to iterate over key-value pairs using standard C++ syntax.
Upp::MapKVRange::Iterator begin() const
Returns an iterator pointing to the first linked (valid) element in the map. If the map is empty or all elements are unlinked, this will return the same value as end().
Upp::MapKVRange::Iterator end() const
Returns an iterator representing the boundary past the last element of the map. This serves as the sentinel value for the end of the iteration.
MapKVRange<Map, K, V>(Map& map)
Initializes a new range object tied to a specific map instance.
map .the AMap based container to be iterated
|