Hacker News new | ask | show | jobs
by nightcracker 4218 days ago
#5 and many, many other reasons is why C++ desperately needs a standardized range type. Let's pray it comes in C++17.
1 comments

What would a range type offer over a pair of iterators?
cout << takeFirstN(sort(myVector), 10) << '\n';

...try that with iterators.