3 ms·
I made an std::vector like wrapper[1] based on this principle, it was fun. Also focused on some of the other advantages you get, like never having to move data
by wheybags 2y ago
I made an std::vector like wrapper[1] based on this principle, it was fun. Also focused on some of the other advantages you get, like never having to move data when you grow the array, and not invalidating pointers/iterators. Never really used it though.
1: https://wheybags.com/blog/pinned.html https://wheybags.com/blog/pinned.html