[#BloombergLP-bdlc-Queue-operator_subs-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

Return a reference to the modifiable element at the specified `index` position in this queue&period; The reference will remain valid as long as this queue is not destroyed or modified (e&period;g&period;, via `insert`, `remove`, or `append`)&period; The behavior is undefined unless `0 &lt;&equals; index &lt; length()`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
operator&lsqb;&rsqb;(int index);
----


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