Possible Duplicate:
Compute Median of Values Stored In Vector - C++?
I need to store a collection of values and then have the ability to calculate its median value.
What is the best container in c++ to store these values, and how do I find the median?
(I might also want to be able to remove specific elements, so I am thinking set may not be the best option...)