std::list or std::multimap
Posted
by Tamir
on Stack Overflow
See other posts from Stack Overflow
or by Tamir
Published on 2010-04-14T16:49:11Z
Indexed on
2010/04/14
16:53 UTC
Read the original article
Hit count: 279
Hey, I right now have a list of a struct that I made, I sort this list everytime I add a new object, using the std::list sort method. I want to know what would be faster, using a std::multimap for this or std::list, since I'm iterating the whole list every frame (I am making a game).
I would like to hear your opinion, for what should I use for this incident.
© Stack Overflow or respective owner