randomizing a multimap
Not really. A multimap is supposed to store things in a strict weak ordering. If you try a random order you probably won't be able to do lookups.
Then a multimap isn't what you need. Either copy your data or multimap::iterator to your data into a random-access sequence (vector, deque), and random_shuffle it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement