prevector::operator[]

Returns a const reference to the element at position pos.

Synopsis

Declared in <prevector.h>

T const&
operator[](size_type pos) const;

Return Value

A const reference to the element at that position.

Parameters

NameDescription
posThe index of the element to access.