◐ Shell
clean mode source ↗

std::queue::front — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

reference front();

const_reference front() const;

Renvoie référence au premier élément dans la file d'attente. Cet élément sera le premier élément à être éliminé sur un appel à pop(). Appelle effectivement c.front() .

Original:

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

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

(Aucun)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

référence au premier élément

Original:

reference to the first element

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complexité

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

accède au dernier élément
(fonction membre publique de std::{{{1}}}) [edit]

supprime le premier élément

Original:

removes the first element

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction membre publique) [edit]