I\'m beginner and learning C++
Having hard times to understand std::map concepts, because the code I\'m playing with implies that the map
is a search tree, i.e.
std::map
is an associative container. The only requirement by the standard is that the container must have an associative container interface and behavior, the implementation is not defined. While the implementation fits the complexity and interface requirements, is a valid implementation.
On the other hand, std::map
is usually implemented with a red-black tree, as the reference says.