Iterator library
Aus cppreference.com
< cpp
![]() |
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. |
Die Iterator-Bibliothek enthält Definitionen für fünf Arten von Iteratoren sowie Iterator-Traits, Adapter und Utility-Funktionen .
Original:
The iterator library provides definitions for five kinds of iterators as well as iterator traits, adapters, and utility functions.
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.
Inhaltsverzeichnis |
[Bearbeiten] Iterator Kategorien
Es gibt fünf Arten von Iteratoren:
InputIterator
, OutputIterator
, ForwardIterator
, BidirectionalIterator
und RandomAccessIterator
.Original:
There are five kinds of iterators:
InputIterator
, OutputIterator
, ForwardIterator
, BidirectionalIterator
, and RandomAccessIterator
.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.
Anstatt durch bestimmte Typen definiert zu werden, wird jede Kategorie von Iteratoren durch die Operationen, die darauf ausgeführt werden können definiert. Diese Definition bedeutet, dass jeder Typ, der die notwendigen Operationen unterstützt als Iterator verwendet werden kann - zum Beispiel unterstützt ein Zeiger alle Operationen durch
RandomAccessIterator
, so ein Zeiger kann überall dort eingesetzt werden wo ein RandomAccessIterator
erforderlich ist .Original:
Instead of being defined by specific types, each category of iterator is defined by the operations that can be performed on it. This definition means that any type that supports the necessary operations can be used as an iterator -- for example, a pointer supports all of the operations required by
RandomAccessIterator
, so a pointer can be used anywhere a RandomAccessIterator
is expected.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.
:. Die fünf Iterator Kategorien können in einer Hierarchie organisiert werden, wo leistungsfähigere Iterator Kategorien (zB
RandomAccessIterator
) die Operationen von weniger leistungsfähigen Kategorien (zB InputIterator
) unterstützenOriginal:
The five iterator categories can be organized into a hierarchy, where more powerful iterator categories (e.g.
RandomAccessIterator
) support the operations of less powerful categories (e.g. InputIterator
):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.
Iterator category | Defined operations | |||
---|---|---|---|---|
RandomAccessIterator
|
BidirectionalIterator
|
ForwardIterator
|
InputIterator
|
|
OutputIterator
|
| |||
| ||||
| ||||
|
[Bearbeiten] Iterator Primitiven
bietet einheitliche Schnittstelle zu den Eigenschaften eines Iterators Original: provides uniform interface to the properties of an iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
leere Klasse-Typen verwendet werden, um Iterator Kategorien anzuzeigen Original: empty class types used to indicate iterator categories The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klasse) | |
die grundlegende Iterator Original: the basic iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) |
[Bearbeiten] Iterator Adapter
Iterator-Adapter für umgekehrter Reihenfolge Traversal Original: iterator adaptor for reverse-order traversal The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
(C++11) |
Iterator-Adapter, der dereferenziert zu einem R-Wert auf Original: iterator adaptor which dereferences to an rvalue reference The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) |
(C++11) |
schafft eine std::move_iterator des Typs aus dem Argument abgeleitet Original: creates a std::move_iterator of type inferred from the argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |
Iterator Adapter für die Zuführung am Ende eines Behälters Original: iterator adaptor for insertion at the end of a container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
schafft eine std::back_insert_iterator des Typs aus dem Argument abgeleitet Original: creates a std::back_insert_iterator of type inferred from the argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
Iterator Adapter für die Zuführung an der Vorderseite eines Behälters Original: iterator adaptor for insertion at the front of a container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
schafft eine std::front_insert_iterator des Typs aus dem Argument abgeleitet Original: creates a std::front_insert_iterator of type inferred from the argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
Iterator Adapter zum Einsetzen in einen Behälter Original: iterator adaptor for insertion into a container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
schafft eine std::insert_iterator des Typs aus dem Argument abgeleitet Original: creates a std::insert_iterator of type inferred from the argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |
[Bearbeiten] Stream-Iteratoren
Input-Iterator, die aus std::basic_istream liest Original: input iterator that reads from std::basic_istream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
Ausgabeiterator, die std::basic_ostream schreibt Original: output iterator that writes to std::basic_ostream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
Input-Iterator, die aus std::basic_streambuf liest Original: input iterator that reads from std::basic_streambuf The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) | |
Ausgabeiterator, die std::basic_streambuf schreibt Original: output iterator that writes to std::basic_streambuf The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Klassen-Template) |
[Bearbeiten] Iterator Operationen
definiert in Header
<iterator> | |
Fortschritte einen Iterator gegeben durch Distanz Original: advances an iterator by given distance The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
gibt den Abstand zwischen zwei Iterationen Original: returns the distance between two iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
(C++11) |
inkrementieren einen Iterator Original: increment an iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
(C++11) |
dekrementieren einen Iterator Original: decrement an iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
[Bearbeiten] Range Access
definiert in Header
<iterator> | |
(C++11) |
liefert einen Iterator auf den Anfang eines Containers oder eines Arrays Original: returns an iterator to the beginning of a container or array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
(C++11) |
liefert einen Iterator auf das Ende eines Containers oder eines Arrays Original: returns an iterator to the end of a container or array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |