At
at()
Returns the value at the index number given like the traditional array syntax:
vector.at(1) == array[1]; // True
you can even use the array syntax on the vector although .at()
is recommended due to superior error checking just like strings: