I need to store a large number of integers. There may be duplicates in the input stream of integers, I just need to store individual among them. I used stl at first, but it exited OutOfMem when the number of input numbers of integers is too large. I am looking for some C ++ container library that let me store numbers with the specified requirement, possibly supported by the ie file, the container should not try to store all the numbers in memory. I do not need to constantly store this data, I just need to find unique values among it.
source
share