HN2new | past | comments | ask | show | jobs | submitlogin

#5 and many, many other reasons is why C++ desperately needs a standardized range type. Let's pray it comes in C++17.


What would a range type offer over a pair of iterators?


cout << takeFirstN(sort(myVector), 10) << '\n';

...try that with iterators.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: