bsl::Deque_Base::operator[]

Return a modifiable reference to the element at position.

Synopsis

Declared in <bslstl_deque.h>

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

Description

Return a reference providing modifiable access to the element at the specified position in this deque. The behavior is undefined unless position < size().

Return Value

modifiable reference to the element at position

Parameters

NameDescription
positionzero-based index of the element