Just use unique_ptr. It is 4/8 bytes extra per element, but it is preferable to the mess I made before that, and it keeps pointers assigned to elements valid at all times regardless of sorting, reorganizing, and allocation. However, stale pointers are still possible if elements are removed from the vector
Just use unique_ptr. It is 4/8 bytes extra per element, but it is preferable to the mess I made before that, and it keeps pointers assigned to elements valid at all times regardless of sorting, reorganizing, and allocation. However, stale pointers are still possible if elements are removed from the vector

joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib,joncampbell123/doslib