bsl::vectorBase::at

Return a modifiable reference to the element at position.

Synopsis

Declared in <bslstl_vector.h>

vectorBase<VALUE_TYPE>::reference
at(size_type position);

Description

Throw a std::out_of_range exception if position >= size().

Return Value

modifiable reference to the element at position

Parameters

NameDescription
positionzero-based index of the element