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

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

Материал из 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.
 
InputIterator является Iterator, что может читать, то к элементу.
Original:
An InputIterator is an Iterator that can read from 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.

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

В дополнение к вышеуказанным требованиям, для типа It быть InputIterator, экземпляры a и b из It должны:
Original:
In addition to the above requirements, for a type It to be an InputIterator, instances a and b 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
 a != b bool !(a == b)
*a value_type If a == b equivalent to *b
a->m (*a).m
++a It& After this, copies of a may be invalidated
a++ ++a
*a++ value_type value_type t = *a;

++a;

return t;