<div class="t-tr-text">C + +: conceitos<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> RandomAccessIterator
De cppreference.com
<metanoindex/>
A
RandomAccessIterator é um BidirectionalIterator que pode ser movido para apontar para qualquer elemento em tempo constante.Original:
A
RandomAccessIterator is a BidirectionalIterator that can be moved to point to any element in constant time.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.
Um ponteiro de tipo é um exemplo de um tipo que satisfaça este conceito.
Original:
A standard pointer is an example of a type that satisfies this concept.
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.
Requisitos
Além do requisito acima, para um tipo
It ser um RandomAccessIterator, instâncias a, b, i, r e de It deve:Original:
In addition to the above requirement, for a type
It to be an RandomAccessIterator, instances a, b, i, and r of It must: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.
Notas de mesa
Ité o tipo de aplicação deste conceitoOriginal:Itis the type implementing this conceptThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Té ostd::iterator_traits<It>::value_typetipoOriginal:Tis the typestd::iterator_traits<It>::value_typeThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.referenceé ostd::iterator_traits<It>::referencetipoOriginal:referenceis the typestd::iterator_traits<It>::referenceThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.differenceé ostd::iterator_traits<It>::difference_typetipoOriginal:differenceis the typestd::iterator_traits<It>::difference_typeThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.i,a,bsão objetos do tipoItouconst ItOriginal:i,a,bare objects of typeItorconst ItThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.ré um valor deIt&tipoOriginal:ris a value of typeIt&The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.né um número inteiro dedifferencetipoOriginal:nis an integer of typedifferenceThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
As regras acima implica que RandomAccessIterator também implementa
LessThanComparable.Original:
The above rules imply that RandomAccessIterator also implements
LessThanComparable.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.
A
mutable RandomAccessiterator é um BidirectionalIterator que, adicionalmente, satisfaz os requisitos OutputIterator.Original:
A
mutable RandomAccessiterator is a BidirectionalIterator that additionally satisfies the OutputIterator requirements.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.
