Concepts
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. |
Un concetto è un termine che descrive 'insieme denominato di requisiti' un per un tipo. I concetti sono un modo più conveniente per specificare sia quali proprietà si aspetta da un tipo, e quali proprietà ha un tipo di.
Original:
A concept is a term that describes a named set of requirements for a type. Concepts are a more convenient way to specify both what properties are expected from a type, and what properties a type has.
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.
C'era a proposal per includere una specifica formale di concetti in C + 11 in modo che il compilatore possa verificare i requisiti di tipo prima modello di istanza e, a sua volta potrebbe produrre messaggi di errore molto più sensibili nel caso in cui un tipo non soddisfaceva il modello requisiti. Questa proposta è stata successivamente abbandonato per vari motivi. Tuttavia, ci sono piani ufficiali per aggiungere concetti per una futura revisione del linguaggio C + +.
Original:
There was a proposal to include a formal specification of concepts into C++11 so that the compiler could check the type requirements before template instantiation and in turn could produce much more sensible error messages in case a type did not fulfill the template requirements. This proposal was later dropped for various reasons. However, there are unofficial plans to add concepts to a future revision of the C++ language.
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.
Qui concetti' hanno poco in comune con la proposta di cui sopra. Essi si riferiscono a requisiti informali con nome, utilizzati in C + e C + 03 +11 a definire il comportamento e le proprietà attese per i diversi tipi.
Original:
Here concepts have little in common with the abovementioned proposal. They refer to informal named requirements, used in C++03 and C++11 to define behavior and expected properties for various types.
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: Basic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
specifica che tipo ha costruttore predefinito Original: specifies that type has default constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
(C++11) |
specifica che tipo ha costruttore mossa Original: specifies that type has move constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
specifica che tipo ha costruttore di copia Original: specifies that type has copy constructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
(C++11) |
specifica che tipo ha un operatore di assegnazione mossa Original: specifies that type has move assignment operator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
specifica che tipo ha un operatore di assegnazione copia Original: specifies that type has copy assignment operator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
tipo ha un distruttore che cancella tutta la memoria Original: type has a destructor that clears all memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
Original: Layout The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Note, that the standard doesn't define named requirements or concepts with names specified in this subcategory. These are type categories defined by the core language. They are included here as concepts only for consistency. | |
(C++11) |
classe con banale copia, assegnazione e distruttore Original: class with trivial copy, assignment and destructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
classe con costruttori banali, assegnazione e distruttore Original: class with trivial constructors, assignment and destructor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
non virtuale classe contenente solo i membri StandardLayout altri, tutti con il controllo di accesso stesso Original: non-virtual class containing only other StandardLayout members, all with the same access control The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
POD (Plain Old Data) struttura, compatibile con il C struct Original: POD (Plain Old Data) structure, compatible with C struct The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
Original: Library-wide The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
ha una operator== lavoro che è una relazione di equivalenzaOriginal: has a working operator== that is an equivalence relationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
operator< è un rigoroso rapporto debole ordinazioneOriginal: operator< is a strict weak ordering relationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
(C++11) |
può essere sostituito con un non qualificato non membro swap() funzione di chiamata Original: can be swapped with an unqualified non-member function call swap() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un Iterator che dereferenziazioni a un tipo Swappable Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
puntatore come tipo di supporto di un valore null Original: pointer-like type supporting a null value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
(concetto) |
Tipo di classe che contiene le informazioni di allocazione Original: class type that contains allocation information The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
un oggetto funzione che può essere chiamata con argomenti specifici e ha valore di ritorno convertibile tipo specifico Original: a function object that can be called with specific arguments and has return value convertible to specific type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
un Callable che restituisce un valore convertibile in bool per un argomento senza modificarloOriginal: a Callable that returns a value convertible to bool for one argument without modifying itThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
un Callable che restituisce un valore convertibile in bool per due argomenti senza modificarliOriginal: a Callable that returns a value convertible to bool for two arguments without modifying themThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
Original: Container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
struttura dati che permette l'accesso elemento utilizzando iteratori Original: data structure that allows element access using iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
contenitore con iteratori bidirezionali Original: container using bidirectional iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
(C++11) |
contenitore utilizzando un allocatore Original: container using an allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
container con elementi memorizzati linearmente Original: container with elements stored linearly The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
contenitore che memorizza elementi associandole ai tasti Original: container that stores elements by associating them to keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
contenitore che memorizza gli elementi archiviati in secchi associandoli ai tasti Original: container that stores elements stored in buckets by associating them to keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
Original: Container element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
elemento può essere copia-costruito nella memoria non inizializzata Original: element can be copy-constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
elemento può essere muoversi-costruito in memoria non inizializzata Original: element can be move-constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
elemento può essere costruito in memoria non inizializzata Original: element can be constructed in uninitialized storage The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
Original: Iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
concetto generale di accesso ai dati all'interno di una struttura di dati Original: general concept to access data within some data structure The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
iteratore che può essere utilizzato per leggere i dati Original: iterator that can be used to read data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
iteratore che può essere utilizzato per scrivere dati Original: iterator that can be used to write data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
iteratore che può essere utilizzato per leggere i dati più volte Original: iterator that can be used to read data multiple times The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
iteratore che può essere sia incrementato e decrementato Original: iterator that can be both incremented and decremented The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
iteratore che può essere avanzata in tempo costante Original: iterator that can be advanced in constant time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
Original: Stream I/O functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
una funzione di input flusso che non saltare gli spazi e conta i caratteri trasformati Original: a stream input function that doesn't skip whitespace and counts the processed characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
una funzione di ingresso ruscello che salta gli spazi iniziali Original: a stream input function that skips leading whitespace The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
un semplice flusso di funzione di uscita Original: a basic stream output function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
una funzione di uscita del flusso che imposta failbit sugli errori preesistenti e restituisce un riferimento al flusso Original: a stream output function that sets failbit on preexisting errors and returns a reference to the stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
Original: Random Number Generation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
consuma una sequenza di numeri interi e produce una sequenza di valori di 32 bit senza segno Original: consumes a sequence of integers and produces a sequence of 32-bit unsigned values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
restituisce uniformemente distribuiti numeri interi casuali senza segno Original: returns uniformly distributed random unsigned integers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un UniformRandomNumberGenerator deterministico, definito dal seme Original: a deterministic UniformRandomNumberGenerator , defined by the seed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un RandomNumberEngine che trasforma l'uscita di un altro RandomNumberEngine Original: a RandomNumberEngine that transforms the output of another RandomNumberEngine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
restituisce numeri casuali distribuiti secondo una data funzione matematica di densità di probabilità Original: returns random numbers distributed according to a given mathematical probability density function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
Original: Concurrency The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
fornisce una semantica di proprietà esclusiva per gli agenti di esecuzione (thread ad esempio) Original: provides exclusive ownership semantics for execution agents (i.e. threads) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
aggiunge tentato blocco acquisizione BasicLockable Original: adds attempted lock acquisition to BasicLockable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
aggiunge l'acquisizione di blocco programmato per Lockable Original: adds timed lock acquisition to Lockable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un Lockable che protegge contro le gare e la sincronizzazione di dati sequenzialmente consistente Original: a Lockable that protects against data races and sequentially consistent synchronization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un TimedLockable che protegge contro le gare e la sincronizzazione di dati sequenzialmente consistente Original: a TimedLockable that protects against data races and sequentially consistent synchronization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
Original: Other The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
descrive una proprietà di un tipo Original: describes a property 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. (concetto) |
(C++11) |
descrive una relazione tra due tipi Original: describes a relationship between two types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
modifica una proprietà di un tipo Original: modifies a property 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. (concetto) |
(C++11) |
aggregati una durata, un punto di tempo, e una funzione per ottenere il punto ora corrente Original: aggregates a duration, a time point, and a function to get the current time point The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
(C++11) |
un Clock che non genera eccezioni Original: a Clock that doesn't throw exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
definisce i tipi e le funzioni di un tipo di carattere Original: defines types and functions for a character type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
rappresenta una posizione in un flusso Original: represents a position in a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
rappresenta un offset in un flusso Original: represents an offset in a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) | |
bitset, intero o enumerazione Original: bitset, integer, or enumeration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (concetto) |
This section is incomplete Reason: Any other missing concept? |