[#bsl-Deque_Base-front-04]
= xref:bsl.adoc[bsl]::xref:bsl/Deque_Base.adoc[Deque&lowbar;Base]::front
:relfileprefix: ../../
:mrdocs:

`front` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

Return a reference providing modifiable access to the first element in this deque&period; The behavior is undefined unless this deque is not empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/Deque_Base/reference.adoc[Deque&lowbar;Base&lt;VALUE&lowbar;TYPE&gt;::reference]
xref:bsl/Deque_Base/front-0c.adoc[front]();
----

[.small]#xref:bsl/Deque_Base/front-0c.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the first element in this deque&period; The behavior is undefined unless this deque is not empty&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/Deque_Base/const_reference.adoc[Deque&lowbar;Base&lt;VALUE&lowbar;TYPE&gt;::const&lowbar;reference]
xref:bsl/Deque_Base/front-01.adoc[front]() const;
----

[.small]#xref:bsl/Deque_Base/front-01.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable reference to the first element
* non&hyphen;modifiable reference to the first element


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