Rajesh Maniforcppnuggetscppnuggets.hashnode.net·Feb 17, 2021Subtle insertion bug with std::mapIf you try to access an element in a std::map using a key that doesn't exist already in the map, it will insert a default-constructed value with that key. This will lead to unexpected behavior if you're not aware that the insertion has occurred. std:...DiscussC++
Reekraj RoyforMy raw thoughtsroyreekraj.hashnode.net·Dec 14, 2022C++ STL summary part 1/3This is the first part of a three-part writeup that covers the concepts of STL in short. Minimal theory and basic syntax of data structures and algorithm templates provided by STL are discussed here. This write-up is in no way sufficient for masterin...Discuss·56 readsstl
Reekraj RoyforMy raw thoughtsroyreekraj.hashnode.net·Dec 14, 2022C++ STL summary part 1/3This is the first part of a three-part writeup that covers the concepts of STL in short. Minimal theory and basic syntax of data structures and algorithm templates provided by STL are discussed here. This write-up is in no way sufficient for masterin...Discuss·56 readsstl
Rajesh Maniforcppnuggetscppnuggets.hashnode.net·Feb 17, 2021Subtle insertion bug with std::mapIf you try to access an element in a std::map using a key that doesn't exist already in the map, it will insert a default-constructed value with that key. This will lead to unexpected behavior if you're not aware that the insertion has occurred. std:...DiscussC++