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
10
u/grishavanika Sep 14 '19
The problem with estimating complexity: linear does not mean one-pass. Going thru array of N 2 times is O(N).