Namespaces
Variants
Views
Actions

std::queue::front

From cppreference.com
< cpp‎ | container‎ | queue
Revision as of 11:30, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
reference front();
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
const_reference front() const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Returns reference to the first element in the queue. This element will be the first element to be removed on a call to Template:rlpf. Effectively calls c.front().

Contents

Parameters

(none)

Return value

reference to the first element

Complexity

Constant

See also

Template:cpp/container/dcl list backTemplate:cpp/container/dcl list pop