therefore my applications have containers with 100 million or more elements.
I am in search of a container that behaves in time - better than std :: deque (not to mention std :: vector) regarding frequent inserts and deletes throughout the container ... including near the middle, Access time to n -th element does not have to be as fast as the vector, but it should be better than a full crawl, as in std :: list (which in any case has huge memory overhead for each element).
Elements must be processed by index (e.g. vector, deque, list), so std :: set or std :: unordered_set also doesn't work well.
Before you sit down and encode such a container: has anyone seen such a beast already? I'm pretty sure STL has nothing of the kind when looking at BOOST. I did not find something that I could use, but I could be wrong.
Any clues?
source
share