What is the best way to remove duplicates in a large multimap in C++? For instance, I have a multimap, key <1,4> with its value 9 appears twice, how to get rid of it quickly? Thanks
...
<1,2> --> 3
<1,3> --> 7
<1,4> --> 9
<1,4> --> 9
...
I want it to to be
...
<1,2> --> 3
<1,3> --> 7
<1,4> --> 9
...