Subscript operators

Synopses

Declared in <prevector.h>

Returns a reference to the element at position pos.

unsigned char&
operator[](size_type pos);

Returns a const reference to the element at position pos.

unsigned char 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