3 ms·
Write me some code that shows me how to compose iterator-based ranges with just 1 iterator's worth of space in each range.
by mehrdadn 6y ago
Write me some code that shows me how to compose iterator-based ranges with just 1 iterator's worth of space in each range.
- stkdump 6y agoIt is not so clear to me what you mean. Maybe you can point to a better version (maybe what some other language does), and I can explain how I think the same can be done with C++20 ranges. I believe ranges are strictly more powerful than what other languages provide, and often they can be slimmer/more efficient for the common case.