by jon6 · 14y ago · 0 comments
Edit: Sorry, I read your comment incorrectly. Instead of std::set I would use a sorted vector without thought for anything up a thousand elements or so. After that it's probably worth profiling. Vector is probably still good even quite a good way after that depending on your use case.
Until memory fragments and you can't allocate a contiguous block for a big vector.