std::vector performs bounds checking when the at() member function is used, but it does not perform any checks with operator[].
When out of bounds operator[] produces undefined results.
std::vector performs bounds checking when the at() member function is used, but it does not perform any checks with operator[].
When out of bounds operator[] produces undefined results.