[#BloombergLP-bdlc-Queue-front-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::front
:relfileprefix: ../../../
:mrdocs:

`front` overloads

== Synopses

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

Return a reference to the modifiable value at the front of this queue&period; The reference will remain valid as long as the queue is not destroyed or modified (e&period;g&period;, via `insert`, `remove`, or `append`)&period; The behavior is undefined if the queue is empty&period; Note that this function is logically equivalent to&colon; &grave; operator &grave;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
xref:BloombergLP/bdlc/Queue/front-02.adoc[front]();
----

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

Return a reference to the non&hyphen;modifiable element at the front of 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 if this queue is empty&period; Note that this function is logically equivalent to&colon; &grave; operator &grave;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T const&
xref:BloombergLP/bdlc/Queue/front-0a.adoc[front]() const;
----

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


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