std::advance
Da 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. |
Definido no cabeçalho <iterator>
|
||
template< class InputIt, class Distance > void advance( InputIt& it, Distance n ); |
||
Incrementos iterador determinado
it
por n
elementos.Original:
Increments given iterator
it
by n
elements.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.
Se
n
é negativo, o iterador é diminuído. Neste caso, InputIt
deve satisfazer os requisitos de BidirectionalIterator
, caso contrário, o comportamento é indefinido.Original:
If
n
is negative, the iterator is decremented. In this case, InputIt
must meet the requirements of BidirectionalIterator
, otherwise the behavior is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click
You can help to correct and verify the translation. Click