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.