Concepts
De cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
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.
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.
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. | |
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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
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 avec copie, cession trivial et destructeur 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. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
POD (Plain Old Data) structure, compatible avec 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. (concept) | |
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. | |
a une operator== de travail qui est une relation d'équivalenceOriginal: 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. (concept) | |
operator< est une stricte relation avec ordre faibleOriginal: 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. (concept) | |
(C++11) |
peut être échangé avec un absolu non-membre swap() appel de fonction 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. (concept) |
(C++11) |
un Iterator qui déréférence à un type Swappable Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
un Callable qui retourne une valeur convertible en bool pour un argument sans le modifierOriginal: 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. (concept) | |
un Callable qui retourne une valeur convertible en bool pour deux arguments sans les modifierOriginal: 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. (concept) |
Original: Container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
conteneur à l'aide itérateurs bidirectionnels 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. (concept) | |
(C++11) |
récipient à l'aide d'un allocateur 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. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
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) |
é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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
Original: Iterator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
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. | |
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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
une fonction de flux de sortie de base 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. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
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) |
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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
(C++11) |
un UniformRandomNumberGenerator déterministe, défini par la semence 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. (concept) |
(C++11) |
un RandomNumberEngine qui transforme la sortie d'un autre 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. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
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) |
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. You can help to correct and verify the translation. Click here for instructions. (concept) |
(C++11) |
ajoute tenté de verrouiller l'acquisition de 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. (concept) |
(C++11) |
ajoute acquisition de verrou chronométré à 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. (concept) |
(C++11) |
un Lockable qui protège contre les races de données et de synchronisation séquentielle cohérente 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. (concept) |
(C++11) |
un TimedLockable qui protège contre les races de données et de synchronisation séquentielle cohérente 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. (concept) |
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) |
décrit une propriété d'un type 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. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (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. You can help to correct and verify the translation. Click here for instructions. (concept) |
(C++11) |
un Clock qui ne lèvent pas d'exceptions 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. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
représente une position dans un flux 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. (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. You can help to correct and verify the translation. Click here for instructions. (concept) | |
bitset, entier ou une énumération 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. (concept) |
This section is incomplete Reason: Any other missing concept? |