BloombergLP::bdlc::Queue::operator[]

Subscript operators

Synopses

Declared in <bdlc_queue.h>

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

T&
operator[](int index);
» more...

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

T const&
operator[](int index) const;
» more...

Return Value

  • modifiable reference to the element at index
  • non-modifiable reference to the element at index

Parameters

NameDescription
indexposition of the element to access