Can we sort unordered map?

1
Yessenia Herzog asked a question: Can we sort unordered map?
Asked By: Yessenia Herzog
Date created: Sun, Jul 11, 2021 11:03 PM
Date updated: Mon, Aug 8, 2022 8:04 AM

Content

Top best answers to the question «Can we sort unordered map»

An unordered_map is a hash container, that is, the keys are hashed. Inside of the container, they don't have the same representation as on the outside. Even the name implies that you can't sort it. It's one of the criteria to choose a hash container: You do not need a specific order.

Your Answer