[#VecDeque-operator_subs-03]
= xref:VecDeque.adoc[VecDeque]::operator&lsqb;&rsqb;
:relfileprefix: ../
:mrdocs:

Get a mutable reference to the element in the deque at the given index&period; Requires idx &lt; size()&period;

== Synopsis

Declared in `&lt;util&sol;vecdeque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
operator&lsqb;&rsqb;(size&lowbar;t idx) noexcept;
----

== Return Value

A mutable reference to the element at idx&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *idx*
| The zero&hyphen;based logical index of the element&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
