My understanding is currently segments are stored in std::vectors.
If I wanted to create a base_collection using a pool instead of a vector, would I just have to create a new segment_backend using a pool class for storage?
It seems using a pool backend would avoid the problem of vector memory reallocation causing object pointers and iterators to become invalid.
Motivation: I want to make object creation and deletion cheaper while retaining a polymorphic collection. Truly pie in the sky. =)
My understanding is currently segments are stored in std::vectors.
If I wanted to create a base_collection using a pool instead of a vector, would I just have to create a new segment_backend using a pool class for storage?
It seems using a pool backend would avoid the problem of vector memory reallocation causing object pointers and iterators to become invalid.
Motivation: I want to make object creation and deletion cheaper while retaining a polymorphic collection. Truly pie in the sky. =)