#include <elm/genstruct/SortedBinMap.h>
template<class K, class T, class C = Comparator<K>>
class elm::genstruct::SortedBinMap< K, T, C >
A map implemented using the SortedBinTree class.
Implemented concepts: concept::Collection, concept::Map.
- Parameters
-
template<class K, class T, class C = Comparator<K>>
template<class K, class T, class C = Comparator<K>>
template<class K, class T, class C = Comparator<K>>
Test if an entry with the given key is in the map.
- Parameters
-
- Returns
- True if the key is in the map, false else.
template<class K, class T, class C = Comparator<K>>
Count the item of entries in the map.
- Returns
- Number of entries in the map.
template<class K, class T, class C = Comparator<K>>
Look for a value matching the given key.
- Parameters
-
key | Key to look for. |
def | Default value returned if the key is not found. |
- Returns
- Found value or the default value.
template<class K, class T, class C = Comparator<K>>
Look for a value matching the given key.
- Parameters
-
- Returns
- Optional matching value.
template<class K, class T, class C = Comparator<K>>
template<class K, class T, class C = Comparator<K>>
template<class K, class T, class C = Comparator<K>>
template<class K, class T, class C = Comparator<K>>
Put a new value in the map.
- Parameters
-
key | Key of the stored value. |
value | Stored value. |
template<class K, class T, class C = Comparator<K>>
Remove a value from the map.
- Parameters
-
key | Key of the value to remove. |
- Warning
- It is an error to pass a key not stored in the map.
template<class K, class T, class C = Comparator<K>>
The documentation for this class was generated from the following files: