• Tutorials
  • Courses
  • Tracks

unordered map Question 2

Last Updated :
Discuss
Comments

Does std::unordered_map guarantee any specific order for its elements?

No, the order is unspecified.

Yes, elements are sorted by key.

Yes, elements are stored in insertion order.

Yes, elements are stored in a random order.

Share your thoughts in the comments