Replies: 1 comment 4 replies
-
It is possible to make small_segmented_vector, but it is pretty big task. Of course, segmented_vector could be used as a starting point, but even in that case it wouldn't be so easy task. But, let's consider other options before doing anything. I do not see point using I also do not see point using I also do not see point using It seems to me that the pointer stability is the main requirement. Is that true? If pointer stability is needed then maybe we could consider some other options:
What do you think? |
Beta Was this translation helpful? Give feedback.
-
I think this could be a good addition to this already amazing set of containers. So
sfl::small_segmented_vector<T, N>
would mean that the first block of N items is statically allocated. I'm refactoring some code in OpenLoco that builds a paint graph, sometimes the graph is used to determine interactions where it basically never exceeds more than a few elements but since the items also act as a single linked list I need pointer stability. It would be the best of both worlds from segmented_vector (pointer stability) and small_vector (reduced pressure on heap).I know its a rather big ask and I would be willing to contribute this portion if you agree with this new container.
Beta Was this translation helpful? Give feedback.
All reactions