Главная
Study mode:
on
1
- What are maps?
2
- Why use maps + example usage
3
- Writing a hash function to use a custom type
4
- The [] operator
5
- The .at function
6
- How to check if key exists in map
7
- How to iterate through maps
8
- How to remove entries from maps
9
- Writing a less-than operator for custom types
10
- Performance and which map to use
Description:
Explore the fundamentals and advanced usage of maps in C++, focusing on std::map and std::unordered_map. Learn about the purpose and benefits of maps, implement custom hash functions for user-defined types, and master key operations such as insertion, retrieval, and deletion. Discover how to iterate through maps, check for key existence, and create less-than operators for custom types. Gain insights into performance considerations and guidelines for choosing between different map types to optimize your C++ programs.

Maps in C++ - std-map and std-unordered_map

The Cherno
Add to list
0:00 / 0:00