development version (master branch)
Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

MapKVRange

 

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.

 

 

Public Method List

 

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.

 

 

Constructor detail

 

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

 

 

 

Do you want to contribute?