M
Mike Copeland
Is there an STL container that lends itself to "top-N" or "largest-
N" processing? It seems that a traditional sorted array would do, but
the continual evaluation, deletion/insertion, and resorting process is
cumbersome and expensive. 8<{{
I would like to pass a large number of data records and select the 10
largest (or smallest) items, but it seems there is no STL facility that
makes that process easy. Please advise. TIA
N" processing? It seems that a traditional sorted array would do, but
the continual evaluation, deletion/insertion, and resorting process is
cumbersome and expensive. 8<{{
I would like to pass a large number of data records and select the 10
largest (or smallest) items, but it seems there is no STL facility that
makes that process easy. Please advise. TIA