std::forward_list::before_begin, std::forward_list::cbefore_begin
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> iterator before_begin(); |
(depuis C++11) | |
const_iterator before_begin() const; |
(depuis C++11) | |
const_iterator cbefore_begin() const; |
(depuis C++11) | |
Retourne un itérateur à l'élément avant le premier élément du conteneur. Cet élément agit comme un espace réservé, tente d'y accéder en résulte un comportement indéfini. Les cas d'utilisation sont uniquement des fonctions
insert_after(), emplace_after(), erase_after(), splice_after() et l'opérateur d'incrémentation: incrémentation de la commencer avant itérateur iterator donne exactement le même obtenu à partir begin() / cbegin() .Original:
Returns an iterator to the element before the first element of the container. This element acts as a placeholder, attempting to access it results in undefined behavior. The only usage cases are in functions
insert_after(), emplace_after(), erase_after(), splice_after() and the increment operator: incrementing the before-begin iterator gives exactly the same iterator as obtained from begin()/cbegin().The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
Retourne la valeur
itérateur à l'élément avant le premier élément
Original:
iterator to the element before 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.
You can help to correct and verify the translation. Click here for instructions.
Exceptions
1-3)
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.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
retourne un itérateur au début Original: returns an iterator to the beginning 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) | |
retourne un itérateur à la fin Original: returns an iterator to the end 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) | |