Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, but at() is guaranteed to throw an exception and operator[] can throw an exception when you go out of bounds. C++26 is tweaking this, but it's still going to differ implementation to implementation.

At least that's my understanding of the situation. Happy to be corrected though.



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

Search: