[#VecDeque-operator_subs-03] = xref:VecDeque.adoc[VecDeque]::operator[] :relfileprefix: ../ :mrdocs: Get a mutable reference to the element in the deque at the given index. Requires idx < size(). == Synopsis Declared in `<util/vecdeque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T& operator[](size_t idx) noexcept; ---- == Return Value A mutable reference to the element at idx. == Parameters [cols="1,4"] |=== | Name| Description | *idx* | The zero‐based logical index of the element. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#