[#VecDeque-operator_subs-09] = xref:VecDeque.adoc[VecDeque]::operator[] :relfileprefix: ../ :mrdocs: Subscript operators == Synopses Declared in `<util/vecdeque.h>` Get a mutable reference to the element in the deque at the given index. Requires idx < size(). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T& xref:VecDeque/operator_subs-03.adoc[operator[]](size_t idx) noexcept; ---- [.small]#xref:VecDeque/operator_subs-03.adoc[_» more..._]# Get a const reference to the element in the deque at the given index. Requires idx < size(). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T const& xref:VecDeque/operator_subs-0f.adoc[operator[]](size_t idx) const noexcept; ---- [.small]#xref:VecDeque/operator_subs-0f.adoc[_» more..._]# == Return Value * A mutable reference to the element at idx. * A const 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]#