Пространства имён
Варианты
Действия

Концепции C++: OutputIterator

Материал из cppreference.com

 
 
Концепции C++
Basic
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Библиотека-Wide
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Контейнер
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Контейнер элементов
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator
OutputIterator
InputIterator
Случайных чисел
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Параллелизмом
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
BasicLockable(C++11)
Lockable(C++11)
TimedLockable(C++11)
Mutex(C++11)
TimedMutex(C++11)
Другое
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
OutputIterator является Iterator, что может написать то к элементу.
Original:
An OutputIterator is an Iterator that can write to the pointed-to element.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Примером такого типа, который реализует OutputIterator является зЬй :: ostream_iterator.
Original:
An example of a type that implements OutputIterator is зЬй :: ostream_iterator.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Когда ForwardIterator, BidirectionalIterator, или RandomAccessIterator удовлетворяет требованиям OutputIterator в дополнение к своим собственным требованиям, она описывается как 'изменяемым'.
Original:
When ForwardIterator, BidirectionalIterator, or RandomAccessIterator satisfies the OutputIterator requirements in addition to its own requirements, it is described as mutable.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Требования

В дополнение к вышеуказанным требованиям, для типа It быть OutputIterator, экземпляры i и o из It должны:
Original:
In addition to the above requirement, for a type It to be an OutputIterator, instances i and o 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.
Expression Return Equivalent expression Notes
*i = o it may not be possible to write twice in the same iterator
++i It& After this, copies of i may be invalidated.
'Сообщение': &r == &++r
Original:
Post: &r == &++r
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
i++ const It& It temp = i;

++i;
return temp;

*i++ = o *i = o;

++i;