Subscript operators

Synopses

Declared in <bdlc_queue.h>

Return a modifiable reference to the element at the specified index.

T&
operator[](int index);

Return a non‐modifiable reference to the element at index.

T const&
operator[](int index) const;

Return Value

  • modifiable reference to the element at index

  • non‐modifiable reference to the element at index

Parameters

Name

Description

index

position of the element to access

Created with MrDocs