C++ language
![]() |
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. |
Questo è un breve accenno ai costrutti disponibili nel linguaggio C++.
Indice |
[modifica] Temi generali
[modifica] Preprocessore
[modifica] Commenti
[modifica] Parole chiave
[modifica] Tabella ASCII
[modifica] Sequenze di escape
[modifica] La storia del C++
[modifica] Controllo del flusso
[modifica] Istruzioni condizionali
Le istruzioni condizionali eseguono diverse parti di codice a seconda del valore dell'espressione data.
- if esegue parti di codice condizionalmente
- switch esegue parti di codice secondo il valore di un argomento intero
[modifica] Istruzioni di iterazione
Le istruzioni di iterazione eseguono una parte di codice più volte.
- for esegue cicli indicando inizializzazione, confronto, e incremento|
- range-for esegue cicli su un intervallo (dal C++11)
- while esegue il ciclo, controllando la condizione prima di ogni iterazione
- <div class="t-tr-text">do-while</div> esegue il ciclo, controllando la condizione dopo ogni iterazioneOriginal:do-whileThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.
[modifica] Istruzioni di salto
Le istruzioni di salto spostano l'esecuzione del programma in una posizione diversa.
- continue salta la restante parte del corpo del ciclo
- break termina il ciclo
- goto continua l'esecuzione in un altra posizione
- return termina l'esecuzione della funzione
[modifica] Funzioni
Lo stesso codice può essere riutilizzato in diverse posizioni del programma.
- dichiarazione funzioni dichiarare le funzioni
- dichiarazione funzioni lambda dichiarare le funzioni lambda (dal C++11)
- funzioni template dichiarare funzioni template
- specificatore inline indica che il compilatore inserire il corpo di una funzione direttamente nel codice chiamante
- eccezioni specifiche dichiarare che una funzione genera solo specifiche eccezioni (deprecato)
- specificatore noexcept dichiara se una funzione genera o meno eccezioni (dal C++11)
[modifica] Eccezioni
Le eccezioni sono un modo più robusto per segnalare condizioni di errore rispetto ai codici ritornati dalle funzioni o alle variabili globali di errore.
- espressioni throw segnala gli errori e trasferisce il controllo ai gestori
- blocchi try-catch intercettare le eccezioni originate da specifici blocchi di codice
- specificatore noexcept e operatore noexcept definire e verificare se le espressioni generano eccezioni (dal C++11)
[modifica] Spazi dei nomi
Gli spazi dei nomi forniscono un modo per evitare conflitti sui nomi nei progetti di grandi dimensioni.
- dichiarazioni namespace dichiarare gli spazi dei nomi
- alias spazio dei nomi dichiarare nomi alternativi per spazi dei nomi esistenti
[modifica] Tipi
- tipi fondamentali definiscono il carattere di base, i tipi interi e a virgola mobile
- tipi puntatore definiscono i tipi in possesso di un indirizzo di memoria
- tipi composti definire tipi che contengono diversi membri di dati (essenzialmente la stessa classe)
- definire i tipi che sono in grado di contenere solo uno dei valori specificatiOriginal:enumerazione tipi</div> define types that are able to hold only one of the specified valuesOriginal:enumeration typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - definire i tipi che possono contenere i dati in varie rappresentazioniOriginal:sindacali tipi</div> define types that can hold data in several representationsOriginal:union typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - definire firme chiamata di funzione, che è il tipo di argomenti e il tipo restituitoOriginal:tipi di funzione</div> define function call signatures, that is the types of arguments and the return typeOriginal:function typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - definisce un tipo equivalente al tipo di espressione (dal C++11)Original:decltype specificatore</div> defines a type equivalent to the type of an expression (dal C++11)Original:decltype specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Specifiers
- specificare constness e la volatilità dei tipiOriginal:cv specificatori</div> specify constness and volatility of typesOriginal:cv specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - specificare la durata di memorizzazione di tipiOriginal:Durata di stoccaggio specificatori</div> specify storage duration of typesOriginal:storage duration specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - specifica che il valore di una variabile o funzione può essere calcolata ad di compilazione (dal C++11)Original:constexpr specificatore</div> specifies that the value of a variable or function can be computed at compile time (dal C++11)Original:constexpr specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - specifica che il tipo effettivo è definito dall'espressione, assegnato alla variabile (dal C++11)Original:specificatore auto</div> specifies that the actual type shall be defined from the expression, assigned to the variable (dal C++11)Original:auto specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - specifica che la memoria per la variabile deve essere allineato con importo specifico (dal C++11) Original:alignas specificatore</div> specifies that the storage for the variable should be aligned by specific amount (dal C++11)Original:alignas specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Inizializzazione
You can help to correct and verify the translation. Click here for instructions.
- verifica quando non viene fornita inizializzatoreOriginal:predefinito di inizializzazione</div> occurs when no initializer is providedOriginal:default initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - si verifica quando il inizializzatore è un insieme vuoto di parentesiOriginal:valore di inizializzazione</div> occurs when the initializer is an empty set of parenthesesOriginal:value initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializza ogni bit dell'oggetto da zeroOriginal:inizializzazione a zero</div> initializes every bit of the object to zeroOriginal:zero initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializza un oggetto da un altro oggettoOriginal:copiare inizializzazione</div> initializes an object from another objectOriginal:copy initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - fornisce il valore iniziale o la lista di argomenti del costruttore, tra parentesiOriginal:inizializzazione diretta</div> provides the initial value or the list of constructor arguments, in parenthesesOriginal:direct initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - fornisce i valori iniziali per ogni membro di un array o una struttura senza un costruttoreOriginal:inizializzazioni di aggregazione</div> provides initial values to every member of an array or a struct without a constructorOriginal:aggregate initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - fornisce un lungo elenco arbitrario di valori, in grado di inizializzare un std::vector o std::map (dal C++11)Original:elenco di inizializzazione</div> provides an arbitrary long list of values, which can initialize a std::vector or std::map (dal C++11)Original:list initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializza tutti gli oggetti statici costanti prima di tuttoOriginal:inizializzazione delle costanti</div> initializes all constant static objects before anything elseOriginal:constant initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - lega i riferimenti agli oggetti ed estendere la durata delle parti provvisoriOriginal:riferimento inizializzazione</div> binds references to objects and extend the lifetimes of the temporariesOriginal:reference initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Letterali
You can help to correct and verify the translation. Click here for instructions.
- sono decimale, ottale, o numeri esadecimali di tipo intero.Original:letterali interi</div> are decimal, octal, or hexadecimal numbers of integer type.Original:integer literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono singoli caratteri di tipo char, char16_t, char32_t, o wchar_tOriginal:caratteri letterali</div> are individual characters of type char, char16_t, char32_t, or wchar_tOriginal:character literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono valori di tipo float, double, o long doubleOriginal:virgola mobile letterali</div> are values of type float, double, or long doubleOriginal:floating-point literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono sequenze di caratteri, che possono essere strette, multibyte, o largaOriginal:stringhe letterali</div> are sequences of characters, which may be narrow, multibyte, or wideOriginal:string literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono valori di bool tipo, cioè true e falseOriginal:letterali booleani</div> are values of type bool, that is true and falseOriginal:boolean literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - nullptr è il puntatore letterale che specifica un valore nullo valore del puntatore (dal C++11)Original:nullptr is the pointer literal which specifies a null pointer value (dal C++11)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono valori costanti di utenti specificato tipo (dal C++11)Original:definito dall'utente letterali</div> are constant values of user-specified type (dal C++11)Original:user-defined literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Espressioni
You can help to correct and verify the translation. Click here for instructions.
- (lvalue, rvalue, glvalue, prvalue, xValue) classificare le espressioni dei loro valoriOriginal:valore categorie</div> (lvalue, rvalue, glvalue, prvalue, xvalue) classify expressions by their valuesOriginal:value categoriesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - di argomenti e sottoespressioni specificare l'ordine in cui si ottengono i risultati intermediOriginal:ordine di valutazione</div> of arguments and subexpressions specify the order in which intermediate results are obtainedOriginal:order of evaluationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - operators consentire l'uso di sintassi che si trovano comunemente in matematicaOriginal:operators allow the use of syntax commonly found in mathematicsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Common operators | ||||||
---|---|---|---|---|---|---|
assegnazione | incrementNJdecrement | aritmetica | logico | confronto | memberNJaccess | altra |
a = b |
++a |
+a |
!a |
a == b |
a[b] |
a(...) |
Special operators | ||||||
static_cast converte un tipo a un altro
tipo compatibile Original: static_cast converts one type to another compatible type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. dynamic_cast converte classe virtuale di base per class
derivato Original: dynamic_cast converts virtual base class to derived class The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. const_cast converte il tipo di tipo compatibile con diversi cv qualifiers
Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. reinterpret_cast converte tipo type
incompatibile Original: reinterpret_cast converts type to incompatible type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. new alloca memory
Original: new allocates memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. delete dealloca memory
Original: delete deallocates memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. sizeof interroga la dimensione di un type
Original: sizeof queries the size of a type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. sizeof... interroga le dimensioni di un parametro confezione (dal C++11)
Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. typeid interroga le informazioni sul tipo di una type
Original: typeid queries the type information of a type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. noexcept controlla se un'espressione può lanciare una (dal C++11)
un'eccezione Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. alignof query requisiti di allineamento di un (dal C++11) tipo
Original: alignof queries alignment requirements of a type (dal C++11) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
- definisce l'ordine in cui sono tenuti operatori ai loro argomentiOriginal:precedenza degli operatori</div> defines the order in which operators are bound to their argumentsOriginal:operator precedenceThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sono ortografie alternative per alcuni operatori Original:rappresentazioni alternative</div> are alternative spellings for some operatorsOriginal:alternative representationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Utilities
You can help to correct and verify the translation. Click here for instructions.
- creare sinonimi per i tipiOriginal:dichiarazioni typedef</div> create synonyms for typesOriginal:typedef declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - creare sinonimi per i tipiOriginal:digitare dichiarazioni alias</div> create synonyms for typesOriginal:type alias declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - definire ulteriori informazioni variabili (dal C++11)Original:attributi</div> define additional information about variables (dal C++11)Original:attributesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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.
- conversioni implicite da un tipo ad un altroOriginal:conversioni standard</div> implicit conversions from one type to anotherOriginal:standard conversionsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - <div class="t-tr-text">
const_cast
conversione</div>Original:const_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
static_cast
conversione</div>Original:static_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
dynamic_cast
conversione</div>Original:dynamic_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
reinterpret_cast
conversione</div>Original:reinterpret_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - conversione utilizzando C-notazione cast e la notazione funzionaleOriginal:cast esplicito</div> conversion using C-style cast notation and functional notationOriginal:explicit castThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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.
- alloca dinamicamente la memoriaOriginal:nuova espressione</div> allocates memory dynamicallyOriginal:new expressionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - rilascia dinamicamente la memoriaOriginal:eliminare espressione</div> deallocates memory dynamicallyOriginal:delete expressionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Classi
You can help to correct and verify the translation. Click here for instructions.
- dichiarare le classiOriginal:classe dichiarazioni</div> declare classesOriginal:class declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - collegamenti con l'istanza corrente di una classe in modalità utenteOriginal:
this
puntatore</div> links to the current instance of a class in member methodsOriginal:this
pointerThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - determinare la visibilità dei membri della classeOriginal:specificatori di accesso</div> determine visibility of class membersOriginal:access specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - concede privilegi di accesso alle parti private / protette per i non membri le classi o funzioniOriginal:amico specificatore</div> grants access privileges to private/protected parts for non-member classes or functionsOriginal:friend specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializzare i dati membro di classeOriginal:liste di inizializzazione</div> initialize class member dataOriginal:initializer listsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Specifiche per una classe di funzioni proprietà
- dichiara che una funzione è virtualeOriginal:funzione specificatore virtuale</div> declares that a function is virtualOriginal:virtual function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara che una funzione virtuale sostituisce un altro function. virtuale (dal C++11)Original:ignorare specificatore</div> declares that a virtual function overrides another virtual function.(dal C++11)Original:override specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara che una funzione virtuale non può essere sottoposto a override in una class.(dal C++11) ereditareOriginal:identificatore finale</div> declares that a virtual function can not be overridden in a inheriting class.(dal C++11)Original:final specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara che un costruttore o un operatore di conversione non può essere utilizzato in implicita conversioni (dal C++11)Original:funzione specificatore esplicito</div> declares that a constructor or conversion operator can not be used in implicit conversions (dal C++11)Original:explicit function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara che una funzione non utilizza i dati di classeOriginal:funzione specificatore static</div> declares that a function does not use class dataOriginal:static function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara che una funzione membro può essere utilizzata solo su oggetti cv qualificatiOriginal:cv funzione specificatore</div> declares that a member function can only be used on cv qualified objectsOriginal:cv function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Funzioni membro speciali
- inizializza l'oggetto con contenuto predefinitoOriginal:costruttore di default</div> initializes the object with default contentsOriginal:default constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializza l'oggetto con il contenuto di un altro oggettoOriginal:costruttore di copia</div> initializes the object with the contents of another objectOriginal:copy constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - inizializza l'oggetto con il contenuto di altri, oggetto temporaneo, la riduzione del sovraccarico copia (dal C++11)Original:spostare costruttore</div> initializes the object with the contents of other, temporary object, minimizing copying overhead (dal C++11)Original:move constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sostituisce il contenuto dell'oggetto con il contenuto di un altro oggettoOriginal:operatore di assegnazione</div> replaces the contents of the object with the contents of another objectOriginal:assignment operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - sostituisce il contenuto dell'oggetto con il contenuto di altri, oggetto temporaneo, la riduzione del sovraccarico copiatura (dal C++11)Original:spostare operatore di assegnazione</div> replaces the contents of the object with the contents of other, temporary object, minimizing copying overhead (dal C++11)Original:move assignment operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - rivendicato risorseOriginal:distruttore</div> releases claimed resourcesOriginal:destructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Modelli
You can help to correct and verify the translation. Click here for instructions.
- dichiara un modello di classeOriginal:classe template dichiarazione</div> declares a class templateOriginal:class template declarationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - dichiara un modello di funzioneOriginal:funzione di modello di dichiarazione</div> declares a function templateOriginal:function template declarationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - definisce un modello esistente per un tipo specificoOriginal:modello di specializzazione</div> defines an existing template for a specific typeOriginal:template specializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - permette l'utilizzo di elenchi di tipi in modelli (dal C++11)Original:parametri confezioni</div> allows the use of lists of types in templates (dal C++11)Original:parameter packsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Ottimizzazioni
- consente alcuna trasformazione codice che non modifica l'uscitaOriginal:Il come-se regola</div> allows any code transformation that doesn't change the outputOriginal:The as-if ruleThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - , compresi RVO e NRVO, fa passare per valore l'approccio preferito in molte situazioni.Original:Copia elisione</div>, including RVO and NRVO, makes pass-by-value the preferred approach in many situations.Original:Copy elisionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - rende l'ereditarietà multipla di interfacce o classi politiche in testa-free ed è necessario per i tipi di layout standard.Original:Ottimizzazione di base vuoto</div> makes multiple inheritance from interfaces or policy classes overhead-free and is required for standard-layout types.Original:Empty base optimizationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Varie
- permette l'uso del codice assembly fianco codice C + +Original:Montaggio in linea</div> allows the use of assembly code alongside C++ codeOriginal:Inline assemblyThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.