std::rotate_copy
Aus 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. |
Defined in header <algorithm> | ||
template<class ForwardIt, class OutputIt > OutputIt rotate_copy( ForwardIt first, ForwardIt n_first, | ||
Kopiert die Elemente aus dem Bereich
[first, last)
, in einen anderen Bereich beginnend bei d_first
in einer solchen Weise, dass das Element n_first
das erste Element der neuen Reihe wird und n_first - 1
wird das letzte Element . Original:
Copies the elements from the range
[first, last)
, to another range beginning at d_first
in such a way, that the element n_first
becomes the first element of the new range and n_first - 1
becomes the last element. 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]Parameter
first, last | - | der Bereich der zu kopierenden Elemente Original: the range of elements to copy The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
n_first | - | das Element, um zum Beginn des neuen Bereichs zu bewegen Original: the element to move to the beginning of the new range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
d_first | - | Beginn des Zielbereichs Original: beginning of the destination range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Type requirements | ||
-ForwardIt must meet the requirements of ForwardIterator . | ||
-OutputIt must meet the requirements of OutputIterator . |
[Bearbeiten]Rückgabewert
Output Iterator auf das Element nach dem letzten Element kopiert .
Original:
Output iterator to the element past the last element copied.
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.
[Bearbeiten]Mögliche Implementierung
[Bearbeiten]Beispiel
This section is incomplete Reason: no example |
[Bearbeiten]Komplexität
linear im Abstand
first
und last
Original:
linear in the distance between
first
and last
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.
[Bearbeiten]Siehe auch
dreht die Reihenfolge der Elemente in einem Bereich Original: rotates the order of elements in a range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |