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(); |
(desde C++11) | |
const_iterator before_begin() const; |
(desde C++11) | |
const_iterator cbefore_begin() const; |
(desde C++11) | |
Retorna um iterador para o elemento, antes do primeiro elemento do recipiente. Este elemento atua como um espaço reservado, tentando acessá-lo resulta em um comportamento indefinido. Os casos de uso são apenas em funções
insert_after(), emplace_after(), erase_after(), splice_after() e operador de incremento: incrementando o antes começar iterador dá exatamente o mesmo iterador como obtido 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.
Parâmetros
(Nenhum)
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.
Valor de retorno
iterador para o elemento, antes do primeiro elemento
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.
Exceções
1-3)
Complexidade
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.
Veja também
retorna um iterador para o começo 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. (função pública membro) | |
retorna um iterador para o fim 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. (função pública membro) |