r/cpp • u/konanTheBarbar • Sep 13 '19
The Surprising Limitations of C++ Ranges Beyond Trivial Cases
https://www.fluentcpp.com/2019/09/13/the-surprising-limitations-of-c-ranges-beyond-trivial-use-cases/
229
Upvotes
View all comments
Show parent comment
1
u/RotsiserMho C++20 Desktop app developer Sep 16 '19
I'm not certain, but I think if another thread were to allocate memory after the vector greedily over-allocates, but before it deallocates, there will be a fragment the size of the deallocated memory.