C++ Map
A map stores elements in “key/value” pairs.
Elements in a map are:
- Accessible by keys (not index), and each key is unique.
- Automatically sorted in ascending order by their keys.
To use a map, you have to include the <map>
header file:
// Include the map library
#include <map>