Hacker News new | past | comments | ask | show | jobs | submit login

vector::at() is an interesting example. Most of the time, you don't use it because you don't index vectors in the first place - you use iterators, and there's no equivalent of at() for them that is guaranteed to throw when out of bounds.



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

Search: