| Start |
|---|
| Declaration and Usage As already mentioned you can declare an unordered map of any type. Let's have a unordered map named first with string and integer type. |
Some Basic Functions RemarksAs the name goes, the elements in unordered map are not stored in sorted sequence. They are stored according to their hash values and hence, usage of unordered map has many benefits such as it only takes O(1) to search any item from it. It is also faster than other map containers. It is also visible from the example that it is very easy to implement as the operator ( [] ) helps us to directly access the mapped value. |
Read Article
https://develop.horje.com/learn/1434/reference