VecDeque::operator[]

Get a const reference to the element in the deque at the given index. Requires idx < size().

Synopsis

Declared in <util/vecdeque.h>

T const&
operator[](size_t idx) const noexcept;

Return Value

A const reference to the element at idx.

Parameters

NameDescription
idxThe zero-based logical index of the element.