I need a class that can allocate a unique integer (handle) and assign it to something object.
And then release it in order to be used later.
This algorithm should be fast. What data structure should I use? vector is fast to access data but long to erase or add(but it also important), list is long to access data.
Maybe you know some good implementations?
Thanks in advance!