I\'m using std::map to store a lot of elements (pairs of elements) and I have a \"little\" doubt. What is more efficient to iterate all elements over my
std::map
Unless you have profiled your code and found there to be a significant difference, I just wouldn't be concerned about it.
"Premature optimization is the root of all evil." - Donald Knuth