Hacker News new | past | comments | ask | show | jobs | submit login
Ranges in C++: Counted Iterables and Efficiency (ericniebler.com)
33 points by adamnemecek on Oct 6, 2014 | hide | past | favorite | 2 comments



Let's hope that makes it to the standard.

Begin & end arguments are distasteful boilerplate (safe for these few times when you need a subrange or pointer pair)


Yep, and other languages handle that better by only forcing you to use the iterators for subranges when you need them, which at least at my job is the minority of the time.




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

Search: