For all your web hosting needs (use coupon code CHERNO for a discount) â–ș https://hostinger.com/cherno

Patreon â–ș https://patreon.com/thecherno
Instagram â–ș https://instagram.com/thecherno

Twitter â–ș https://twitter.com/thecherno
Discord â–ș https://discord.gg/thecherno

My C++ series â–ș https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb

Chapters:
----------------
0:00 - What are maps?
3:40 - Why use maps + example usage
9:30 - Writing a hash function to use a custom type
16:50 - The [] operator
19:00 - The .at() function
20:40 - How to check if key exists in map
21:11 - How to iterate through maps
24:47 - How to remove entries from maps
25:03 - Writing a less-than operator for custom types
28:05 - Performance and which map to use

This video is sponsored by Hostinger.