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

Subscript operators

== Synopses

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

Return a modifiable reference to the element at the specified `index`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
xref:BloombergLP/bdlc/Queue/operator_subs-0d.adoc[operator&lsqb;&rsqb;](int index);
----

[.small]#xref:BloombergLP/bdlc/Queue/operator_subs-0d.adoc[_» more&period;&period;&period;_]#

Return a non&hyphen;modifiable reference to the element at `index`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T const&
xref:BloombergLP/bdlc/Queue/operator_subs-00.adoc[operator&lsqb;&rsqb;](int index) const;
----

[.small]#xref:BloombergLP/bdlc/Queue/operator_subs-00.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable reference to the element at `index`
* non&hyphen;modifiable reference to the element at `index`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| position of the element to access
|===


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