Map in C++

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=3rhgoYJOZwo



Duration: 0:00
233 views
18


C++ Maps. Maps are a collection of key value pairs. Each key is mapped to a value. Keys must be unique in a map, while values do not have to be unique.
For example, a dictionary is a map (as named in Python), as the keys would be vocabulary words, and the values would be definitions/meanings.

In this video you will learn how to add and update a key value pair, iterate through the key value pairs in the map, and remove key value pairs from the map. You will also learn about the unordered_map, and multimap. A C++ map is in sorted order, whereas in other languages, a map may not be sorted.

If you need to review these topics:
Pair:    • C++ Pair  
Set:    • C++ Set, Unordered Set, Multiset  
Iterator:    • C++ Iterators  
Vector:    • C++ Vectors and Dynamic Arrays  

C++ Playlist:
   • C++ Tutorial  

Install C++ with VS Code:
   • How to set up C++ in Visual Studio Code  

Subscribe for more coding tutorials 😄!