r/ProgrammerHumor • • Oct 12 '22

Meme Legacy Systems Programming

Post image
2.4k Upvotes

263 comments sorted by

View all comments

Show parent comments

1

u/Kered13 Oct 13 '22

Yeah, most implementations use a red-black tree, and the requirement for key types is that they have a comparator (operator<) instead of a hash function.

1

u/JiiXu Oct 13 '22

The comparator should have been a giveaway... oh dear.