Subscript operators

Synopses

Declared in <prevector.h>

Returns a reference to the element at position pos.

Returns a const reference to the element at position pos.

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

Return Value

  • A reference to the element at that position.

  • A const reference to the element at that position.

Parameters

Name

Description

pos

The index of the element to access.

Created with MrDocs