bsl::Deque_Base::operator[]

Subscript operators

Synopses

Declared in <bslstl_deque.h>

Return a modifiable reference to the element at position.

Deque_Base<VALUE_TYPE>::reference
operator[](size_type position);
» more...

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

Deque_Base<VALUE_TYPE>::const_reference
operator[](size_type position) const;
» more...

Return Value

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

Parameters

NameDescription
positionzero-based index of the element