Concepts — cppreference.com
<metanoindex/>
Un concept est un terme qui décrit 'ensemble nommé d'exigences' une pour un type. Les concepts sont un moyen plus pratique de spécifier à la fois les propriétés qui sont attendues d'un type, et quelles sont les propriétés d'un type a .
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.
Il y avait a proposal d'inclure une spécification formelle des concepts en C + 11 afin que le compilateur peut vérifier les exigences de type avant instanciation du modèle et à son tour, pourrait produire des messages d'erreur beaucoup plus sensibles dans le cas d'un type n'a pas respecté le modèle exigences. Cette proposition a été abandonnée par la suite pour diverses raisons. Cependant, il est prévu d'ajouter des concepts non officielles à une future révision du langage 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.
Ici' concepts ont peu en commun avec la proposition susmentionnée. Ils se réfèrent à des exigences informelles nommés, utilisées en C + 03 et C + +11 à définir le comportement et les propriétés attendues pour les différents types .
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.
De base Original: Basic The text has been machine-translated via Google Translate. | |
spécifie ce type n'a constructeur par défaut Original: specifies that type has default constructor The text has been machine-translated via Google Translate. (concept) | |
(C++11) |
spécifie ce type a constructeur déménagement Original: specifies that type has move constructor The text has been machine-translated via Google Translate. (concept) |
spécifie ce type a constructeur de copie Original: specifies that type has copy constructor The text has been machine-translated via Google Translate. (concept) | |
(C++11) |
spécifie ce type n'a opérateur d'affectation mouvement Original: specifies that type has move assignment operator The text has been machine-translated via Google Translate. (concept) |
spécifie ce type a l'opérateur d'affectation de copie Original: specifies that type has copy assignment operator The text has been machine-translated via Google Translate. (concept) | |
type a un destructeur qui efface toute la mémoire Original: type has a destructor that clears all memory The text has been machine-translated via Google Translate. (concept) | |
Mise en page Original: Layout The text has been machine-translated via Google Translate. | |
| 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 avec copie, cession trivial et destructeur Original: class with trivial copy, assignment and destructor The text has been machine-translated via Google Translate. (concept) |
(C++11) |
classe avec des constructeurs triviales, missions et destructeur Original: class with trivial constructors, assignment and destructor The text has been machine-translated via Google Translate. (concept) |
(C++11) |
non virtuelle classe ne contenant que des membres StandardLayout autres, toutes avec le même contrôle d'accès Original: non-virtual class containing only other StandardLayout members, all with the same access control The text has been machine-translated via Google Translate. (concept) |
POD (Plain Old Data) structure, compatible avec C Original: POD (Plain Old Data) structure, compatible with C The text has been machine-translated via Google Translate. (concept) | |
Bibliothèque échelle Original: Library-wide The text has been machine-translated via Google Translate. | |
a une Original: has a working The text has been machine-translated via Google Translate. (concept) | |
Original:
The text has been machine-translated via Google Translate. (concept) | |
(C++11) |
peut être échangé avec un absolu non-membre Original: can be swapped with an unqualified non-member function call The text has been machine-translated via Google Translate. (concept) |
(C++11) |
un Original: The text has been machine-translated via Google Translate. (concept) |
(C++11) |
pointeur de type de support de type une valeur nulle Original: pointer-like type supporting a null value The text has been machine-translated via Google Translate. (concept) |
(C++11) |
(concept) |
type de classe qui contient des informations d'allocation Original: class type that contains allocation information The text has been machine-translated via Google Translate. (concept) | |
un objet fonction qui peut être appelée avec des arguments précis et a une valeur de retour convertible en type spécifique 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. (concept) | |
un Original: a The text has been machine-translated via Google Translate. (concept) | |
un Original: a The text has been machine-translated via Google Translate. (concept) | |
Récipient Original: Container The text has been machine-translated via Google Translate. | |
structure de données qui permet d'accéder élément en utilisant les itérateurs Original: data structure that allows element access using iterators The text has been machine-translated via Google Translate. (concept) | |
conteneur à l'aide itérateurs bidirectionnels Original: container using bidirectional iterators The text has been machine-translated via Google Translate. (concept) | |
(C++11) |
récipient à l'aide d'un allocateur Original: container using an allocator The text has been machine-translated via Google Translate. (concept) |
Récipient avec des éléments stockés de façon linéaire Original: container with elements stored linearly The text has been machine-translated via Google Translate. (concept) | |
conteneur qui stocke des éléments en les associant à des touches Original: container that stores elements by associating them to keys The text has been machine-translated via Google Translate. (concept) | |
(C++11) |
conteneur qui stocke des éléments stockés dans des seaux en les associant à des touches Original: container that stores elements stored in buckets by associating them to keys The text has been machine-translated via Google Translate. (concept) |
Élément conteneur Original: Container element The text has been machine-translated via Google Translate. | |
(C++11) |
élément peut être copié et construit dans le stockage non initialisée Original: element can be copy-constructed in uninitialized storage The text has been machine-translated via Google Translate. (concept) |
(C++11) |
élément peut être déplacer construit dans le stockage non initialisée Original: element can be move-constructed in uninitialized storage The text has been machine-translated via Google Translate. (concept) |
(C++11) |
élément peut être construit dans le stockage non initialisée Original: element can be constructed in uninitialized storage The text has been machine-translated via Google Translate. (concept) |
Iterator Original: Iterator The text has been machine-translated via Google Translate. | |
concept général d'accéder aux données dans une structure de données Original: general concept to access data within some data structure The text has been machine-translated via Google Translate. (concept) | |
itérateur qui peut être utilisé pour lire les données Original: iterator that can be used to read data The text has been machine-translated via Google Translate. (concept) | |
itérateur qui peut être utilisé pour écrire des données Original: iterator that can be used to write data The text has been machine-translated via Google Translate. (concept) | |
itérateur qui peut être utilisé pour lire des données à plusieurs reprises Original: iterator that can be used to read data multiple times The text has been machine-translated via Google Translate. (concept) | |
itérateur qui peut être à la fois incrémenté et décrémenté Original: iterator that can be both incremented and decremented The text has been machine-translated via Google Translate. (concept) | |
itérateur qui peut être avancé en temps constant Original: iterator that can be advanced in constant time The text has been machine-translated via Google Translate. (concept) | |
Flux d'E / S des fonctions Original: Stream I/O functions The text has been machine-translated via Google Translate. | |
une fonction de flux d'entrée qui ne saute pas compte des espaces et les caractères transformés Original: a stream input function that doesn't skip whitespace and counts the processed characters The text has been machine-translated via Google Translate. (concept) | |
une fonction d'entrée ruisseau qui saute les espaces au début Original: a stream input function that skips leading whitespace The text has been machine-translated via Google Translate. (concept) | |
une fonction de flux de sortie de base Original: a basic stream output function The text has been machine-translated via Google Translate. (concept) | |
une fonction de flux de sortie qui définit failbit sur les erreurs préexistantes et renvoie une référence à la rivière 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. (concept) | |
Génération de nombres aléatoires Original: Random Number Generation The text has been machine-translated via Google Translate. | |
(C++11) |
consomme une séquence de nombres entiers, et donne une séquence de 32-bit des valeurs non signées Original: consumes a sequence of integers and produces a sequence of 32-bit unsigned values The text has been machine-translated via Google Translate. (concept) |
(C++11) |
retourne aléatoire uniformément distribué entiers non signés Original: returns uniformly distributed random unsigned integers The text has been machine-translated via Google Translate. (concept) |
(C++11) |
un Original: a deterministic The text has been machine-translated via Google Translate. (concept) |
(C++11) |
un Original: a The text has been machine-translated via Google Translate. (concept) |
(C++11) |
renvoie nombres aléatoires distribués selon une fonction donnée de densité de probabilité mathématique Original: returns random numbers distributed according to a given mathematical probability density function The text has been machine-translated via Google Translate. (concept) |
Simultanéité Original: Concurrency The text has been machine-translated via Google Translate. | |
(C++11) |
fournit une sémantique de propriété exclusifs pour les agents d'exécution (threads par exemple) Original: provides exclusive ownership semantics for execution agents (i.e. threads) The text has been machine-translated via Google Translate. (concept) |
(C++11) |
ajoute tenté de verrouiller l'acquisition de Original: adds attempted lock acquisition to The text has been machine-translated via Google Translate. (concept) |
(C++11) |
ajoute acquisition de verrou chronométré à Original: adds timed lock acquisition to The text has been machine-translated via Google Translate. (concept) |
(C++11) |
un Original: a The text has been machine-translated via Google Translate. (concept) |
(C++11) |
un Original: a The text has been machine-translated via Google Translate. (concept) |
Autre Original: Other The text has been machine-translated via Google Translate. | |
(C++11) |
décrit une propriété d'un type Original: describes a property of a type The text has been machine-translated via Google Translate. (concept) |
(C++11) |
décrit une relation entre deux types Original: describes a relationship between two types The text has been machine-translated via Google Translate. (concept) |
(C++11) |
modifie une propriété d'un type Original: modifies a property of a type The text has been machine-translated via Google Translate. (concept) |
(C++11) |
agrégats d'une durée, d'un point dans le temps, et une fonction pour obtenir l'instant présent 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. (concept) |
(C++11) |
un Original: a The text has been machine-translated via Google Translate. (concept) |
définit les types et fonctions pour un type de caractère Original: defines types and functions for a character type The text has been machine-translated via Google Translate. (concept) | |
représente une position dans un flux Original: represents a position in a stream The text has been machine-translated via Google Translate. (concept) | |
représente un décalage dans un ruisseau Original: represents an offset in a stream The text has been machine-translated via Google Translate. (concept) | |
bitset, entier ou une énumération Original: bitset, integer, or enumeration The text has been machine-translated via Google Translate. (concept) | |