Is there a corresponding class in C ++ like TreeMap in Java?

Is there a corresponding class in C ++ like TreeMap in Java? thanks

+4
source share
2 answers

Yes, std::map found in the header of the standard <map> library.

+10
source

I think the STL card might be what you want.

Its implementation may be different; I believe this is based on a red-black tree.

+6
source

Source: https://habr.com/ru/post/1342451/


All Articles