Template:cpp/container/at

Returns a reference to the element at specified location, with bounds checking.

If is not within the range of the container, an exception of type std is thrown.

Return value
Reference to the requested element.

Exceptions
std if.

Complexity
Constant.