bsl::vectorBase::back

Return a non-modifiable reference to the last element.

Synopsis

Declared in <bslstl_vector.h>

vectorBase<VALUE_TYPE>::const_reference
back() const;

Description

The behavior is undefined unless this vector is not empty.

Return Value

non-modifiable reference to the last element