bsl::vectorBase::operator[]

Return a reference to the element at the specified position.

Synopsis

Declared in <bslstl_vector.h>

vectorBase<VALUE_TYPE>::const_reference
operator[](size_type position) const;

Description

Return a reference providing non-modifiable access to the element at the specified position in this vector. The behavior is undefined unless position < size().

Return Value

non-modifiable reference to the element at position

Parameters

NameDescription
positionelement position or insertion point