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. |
<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.
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 | |