STL vectors perform bounds checking when the .at()
member function is called, but do not perform any checks on the []
operator.
When out of bounds, the []
operator produces undefined results.
STL vectors perform bounds checking when the .at()
member function is called, but do not perform any checks on the []
operator.
When out of bounds, the []
operator produces undefined results.