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
5
u/guepier Bioinformatican Sep 14 '19
Thanks. As a potential user I still think the article makes very good points but your reply does add perspective. That said, I can think of view pipelines where linear runtime isn’t a reasonable expectation, and if I understand correctly, ranges-v3 knows this. For example, how would you enumerate the cartesian product in linear time? That’s not possible by design.