Why is std::map implemented as a red-black tree?
Asked 07 September, 2021
Viewed 2.1K times
  • 60
Votes

Why is std::map implemented as a red-black tree?

There are several balanced binary search trees (BSTs) out there. What were design trade-offs in choosing a red-black tree?

6 Answer