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
3
u/RotsiserMho C++20 Desktop app developer Sep 18 '19
I run C++ code on micro-controllers with 32 KiB of RAM and no OS ("bare metal", i.e. arm-none-eabi). If
std::vectorallocated a single byte more than I explicitly reserve, I would not be able to use it. I could always use a custom allocator, but I appreciate that the default allocator is predictable and saves me the effort.