std::rotate_copy
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <algorithm>
|
||
template< class ForwardIt, class OutputIt > OutputIt rotate_copy( ForwardIt first, ForwardIt n_first, |
||
Copia los elementos de la
[first, last)
rango, a otro principio rango en d_first
de tal manera, que el elemento n_first
se convierte en el primer elemento de la nueva gama n_first - 1
y se convierte en el último elemento . 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.
Contenido |
[editar] Parámetros
first, last | - | la gama de elementos a copiar
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 | - | el elemento se mueva hasta el principio de la nueva gama
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 | - | inicio del rango de destino
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. |
Requisitos de tipo | ||
-ForwardIt debe reunir los requerimientos de ForwardIterator .
| ||
-OutputIt debe reunir los requerimientos de OutputIterator .
|
[editar] Valor de retorno
salida iterador al elemento más allá del último elemento copiado .
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.
[editar] Posible implementación
[editar] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar] Complejidad
lineal en la distancia entre
first
y 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.
[editar] Ver también
Rota el orden de los elementos en un rango. (plantilla de función) |