bsl::vectorBase::at

at overloads

Synopses

Declared in <bslstl_vector.h>

Return a modifiable reference to the element at position.

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

Return a non-modifiable reference to the element at position.

vectorBase<VALUE_TYPE>::const_reference
at(size_type position) const;
» more...

Return Value

  • modifiable reference to the element at position
  • non-modifiable reference to the element at position

Parameters

NameDescription
positionzero-based index of the element