Algorithms library
Da cppreference.com.
                    
                                        
                    < cpp
                    
                                                            
                    |  | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. 
 La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. | 
La libreria di algoritmi definisce le funzioni per una varietà di scopi (es. ricerca, selezione, il conteggio, la manipolazione) che operano su gamme di elementi. Si noti che un intervallo è definito come 
[first, last) dove last fa riferimento all'elemento passato l'ultimo elemento per controllare o modificare.Original:
The algorithms library defines functions for a variety of purposes (e.g. searching, sorting, counting, manipulating) that operate on ranges of elements. Note that a range is defined as 
[first, last) where last refers to the element past the last element to inspect or modify.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.
|   Original:  Non-modifying sequence operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
| (C++11) (C++11) (C++11) |  controlla se un predicato è true per tutti, qualsiasi o nessuno degli elementi di un intervallo  Original:  checks if a predicate is true for all, any or none of the 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. (funzione di modello) | 
|  applica una funzione di una serie di elementi Original:  applies a function to a range of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  restituisce il numero di elementi che soddisfano criteri specifici  Original:  returns the number of elements satisfying specific criteria  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  trova la prima posizione in cui due intervalli diversi  Original:  finds the first position where two ranges differ  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  determina se due serie di elementi sono gli stessi  Original:  determines if two sets of elements are the same  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) |  trova il primo elemento che soddisfi i criteri specifici  Original:  finds the first element satisfying specific criteria  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  trova l'ultima sequenza di elementi di un certo intervallo  Original:  finds the last sequence of elements in a certain range  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| searches for any one of a set of elements (funzione di modello) | |
|  trova due identici (o qualche altra relazione) elementi adiacenti l'uno all'altro  Original:  finds two identical (or some other relationship) items adjacent to each other  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| searches for a range of elements (funzione di modello) | |
|  ricerche di un numero di copie consecutive di un elemento in un intervallo  Original:  searches for a number consecutive copies of an element 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. (funzione di modello) | |
|   Original:  Modifying sequence operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
| (C++11) |  copia un intervallo di elementi in una nuova posizione  Original:  copies a range of elements to a new location  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
| (C++11) |  copia un numero di elementi in una nuova posizione  Original:  copies a number of elements to a new location  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  una serie di elementi in ordine inverso  Original:  copies a range of elements in backwards order  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) |  sposta un intervallo di elementi in una nuova posizione  Original:  moves a range of elements to a new location  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
| (C++11) |  sposta un intervallo di elementi in una nuova posizione in ordine inverso  Original:  moves a range of elements to a new location in backwards order  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  assegna un intervallo di elementi di un certo valore  Original:  assigns a range of elements a certain value  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  assegna un valore a un numero di elementi  Original:  assigns a value to a number of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  applica una funzione di una serie di elementi  Original:  applies a function to a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  salva il risultato di una funzione in un intervallo  Original:  saves the result of a function 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. (funzione di modello) | |
|  salva il risultato di applicazioni N di una funzione  Original:  saves the result of N applications of a function  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  rimuove gli elementi che soddisfano criteri specifici  Original:  removes elements satisfying specific criteria  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  copia un intervallo di elementi omettendo quelli che soddisfano criteri specifici  Original:  copies a range of elements omitting those that satisfy specific criteria  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  sostituisce tutti i valori che soddisfano criteri specifici con un altro valore  Original:  replaces all values satisfying specific criteria with another value  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  copia un intervallo, la sostituzione degli elementi che soddisfano i criteri specifici con un altro valore  Original:  copies a range, replacing elements satisfying specific criteria with another value  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  scambia i valori di due oggetti  Original:  swaps the values of two objects  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  Scambia due gamme di elementi  Original:  swaps two ranges of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  swap gli elementi a cui punta due iteratori  Original:  swaps the elements pointed to by two iterators  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  inverte gli elementi di ordine in un intervallo  Original:  reverses the order 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. (funzione di modello) | |
|  crea una copia di un intervallo che è invertita  Original:  creates a copy of a range that is reversed  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  ruota l'ordine degli elementi in un intervallo  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. (funzione di modello) | |
|  copie e ruotare una serie di elementi  Original:  copies and rotate a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) |  casualmente ri-ordini elementi in un intervallo  Original:  randomly re-orders 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. (funzione di modello) | 
| removes consecutive duplicate elements in a range (funzione di modello) | |
|  crea una copia di alcune serie di elementi che non contiene duplicati consecutivi  Original:  creates a copy of some range of elements that contains no consecutive duplicates  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|   Original:  Partitioning operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C++11) |  determina se il campo è diviso dal predicato specificato  Original:  determines if the range is partitioned by the given predicate  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  divide una serie di elementi in due gruppi  Original:  divides a range of elements into two groups  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) | copies a range dividing the elements into two groups (funzione di modello) | 
|  divide gli elementi in due gruppi, mantenendo l'ordine relativo  Original:  divides elements into two groups while preserving their relative order  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) | locates the partition point of a partitioned range (funzione di modello) | 
|   Original:  Sorting operations (on sorted ranges) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
| (C++11) |  controlla se un intervallo è ordinata in ordine ascendente  Original:  checks whether a range is sorted into ascending order  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
| (C++11) |  trova il più grande subrange ordinato  Original:  finds the largest sorted subrange  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  ordina una serie in ordine crescente  Original:  sorts a range into ascending order  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  ordina i primi n elementi di un intervallo  Original:  sorts the first N elements of a range  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  copie e parzialmente ordina una serie di elementi  Original:  copies and partially sorts a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  Ordina un intervallo di elementi, mantenendo ordine tra elementi uguali  Original:  sorts a range of elements while preserving order between equal elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  parzialmente ordina l'intervallo dato assicurandosi che è divisa dal dato elemento  Original:  partially sorts the given range making sure that it is partitioned by the given element  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|   Original:  Binary search operations (on sorted ranges) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
|  restituisce un iteratore al primo elemento' non inferiore al valore dato Original:  returns an iterator to the first element not less than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  ritorna un iteratore al primo elemento' maggiore di un certo valore Original:  returns an iterator to the first element greater than a certain value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  determina se un elemento è presente in un certo intervallo  Original:  determines if an element exists in a certain range  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  torna gamma di elementi che corrispondono un tasto specifico Original:  returns range of elements matching a specific key The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|   Original:  Set operations (on sorted ranges) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
|  unisce due campi ordinati  Original:  merges two sorted ranges  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  unisce due gamme ordinate in-place  Original:  merges two ordered ranges in-place  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  restituisce true se un insieme è un sottoinsieme di un altro  Original:  returns true if one set is a subset of another  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  calcola la differenza tra due insiemi  Original:  computes the difference between two sets  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  calcola l'intersezione di due insiemi  Original:  computes the intersection of two sets  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  calcola la differenza simmetrica tra due insiemi  Original:  computes the symmetric difference between two sets  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| computes the union of two sets (funzione di modello) | |
|   Original:  Heap operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
| checks if the given range is a heap (funzione di modello) | |
| (C++11) |  trova il più grande sottointervallo che è heap  Original:  finds the largest subrange that is heap  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  crea un mucchio su una serie di elementi  Original:  creates a heap out of a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  aggiunge un elemento a un heap  Original:  adds an element to a heap  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  rimuove l'elemento più grande di un mucchio  Original:  removes the largest element from a heap  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  trasforma un mucchio in una serie ordinata di elementi  Original:  turns a heap into a sorted range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|   Original:  Minimum/maximum operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <algorithm> | |
|  restituisce il più grande dei due elementi  Original:  returns the larger of two elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  restituisce l'elemento più grande in un intervallo  Original:  returns the largest element 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. (funzione di modello) | |
|  restituisce il minore dei due elementi  Original:  returns the smaller of two elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  restituisce l'elemento più piccolo in un intervallo  Original:  returns the smallest element 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. (funzione di modello) | |
| (C++11) |  restituisce l'. più grande e più piccolo dei due elementi  Original:  returns the larger and the smaller of two elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
| (C++11) |  restituisce l'elemento più piccolo e il più grande in un intervallo  Original:  returns the smallest and the largest element 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. (funzione di modello) | 
|  restituisce true se un intervallo è lessicograficamente minore di un altro  Original:  returns true if one range is lexicographically less than another  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
| (C++11) | determines if a sequence is a permutation of another sequence (funzione di modello) | 
| generates the next greater lexicographic permutation of a range of elements (funzione di modello) | |
| generates the next smaller lexicographic permutation of a range of elements (funzione di modello) | |
|   Original:  Numeric operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <numeric> | |
| (C++11) |  riempie un intervallo con incrementi successivi del valore iniziale  Original:  fills a range with successive increments of the starting value  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | 
|  riassume una serie di elementi  Original:  sums up a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  calcola il prodotto interno di due gamme di elementi  Original:  computes the inner product of two ranges of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|  calcola le differenze tra elementi adiacenti in un intervallo  Original:  computes the differences between adjacent 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. (funzione di modello) | |
|  calcola la somma parziale di una serie di elementi  Original:  computes the partial sum of a range of elements  The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) | |
|   Original:  C library The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| Defined in header  <cstdlib> | |
|  Ordina un intervallo di elementi di tipo non specificato Original:  sorts a range of elements with unspecified type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
|  cerca una matrice per un elemento di tipo non specificato Original:  searches an array for an element of unspecified type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |


