Bimap
Bimap is a bidirectional map, which means that it can both elements are a key to each other.
The main difference with the map data structure is that all elements must be unique.
Functions
Name |
Description |
---|---|
Inserts an element into the Bimap, according to a key. If the data already exists, its value changes. |
|
Checks if an element already exists. |
|
Erases an element from the map. |
|
Returns the element according to the key passed in parameters. |
|
Returns the number of elements in the Bimap. |