[#VecDeque-front-01]
= xref:VecDeque.adoc[VecDeque]::front
:relfileprefix: ../
:mrdocs:

`front` overloads

== Synopses

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

Get a mutable reference to the first element of the deque&period; Requires !empty()&period;


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

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

Get a const reference to the first element of the deque&period; Requires !empty()&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T const&
xref:VecDeque/front-07.adoc[front]() const noexcept;
----

[.small]#xref:VecDeque/front-07.adoc[_» more&period;&period;&period;_]#

== Return Value

* A mutable reference to the first element&period;
* A const reference to the first element&period;


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