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 dcrit 'ensemble nomm d'exigences' une pour un type. Les concepts sont un moyen plus pratique de spcifier la fois les proprits qui sont attendues d'un type, et quelles sont les proprits 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 spcification formelle des concepts en C + 11 afin que le compilateur peut vrifier les exigences de type avant instanciation du modle et son tour, pourrait produire des messages d'erreur beaucoup plus sensibles dans le cas d'un type n'a pas respect le modle exigences. Cette proposition a t abandonne par la suite pour diverses raisons. Cependant, il est prvu d'ajouter des concepts non officielles une future rvision 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 susmentionne. Ils se rfrent des exigences informelles nomms, utilises en C + 03 et C + +11 dfinir le comportement et les proprits attendues pour les diffrents 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. | |
spcifie ce type n'a constructeur par dfaut 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) |
spcifie ce type a constructeur dmnagement 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) |
spcifie 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) |
spcifie ce type n'a oprateur 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) |
spcifie ce type a l'oprateur 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 mmoire 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 mme contrle d'accs 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 drfrence 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 appele avec des arguments prcis et a une valeur de retour convertible en type spcifique 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 donnes qui permet d'accder lment en utilisant les itrateurs 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 itrateurs 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) |
rcipient 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) |
Rcipient avec des lments stocks de faon linaire 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 lments 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 lments stocks 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) |
lment peut tre copi et construit dans le stockage non initialise 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) |
lment peut tre dplacer construit dans le stockage non initialise 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) |
lment peut tre construit dans le stockage non initialise 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 gnral d'accder aux donnes dans une structure de donnes 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) | |
itrateur qui peut tre utilis pour lire les donnes 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) | |
itrateur qui peut tre utilis pour crire des donnes 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) | |
itrateur qui peut tre utilis pour lire des donnes 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) | |
itrateur qui peut tre la fois incrment et dcrment 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) | |
itrateur 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'entre qui ne saute pas compte des espaces et les caractres transforms 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'entre ruisseau qui saute les espaces au dbut 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 dfinit failbit sur les erreurs prexistantes et renvoie une rfrence la rivire 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 squence de nombres entiers, et donne une squence de 32-bit des valeurs non signes 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 alatoire uniformment distribu entiers non signs 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 dterministe, dfini 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 alatoires distribus selon une fonction donne de densit de probabilit mathmatique 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 smantique de proprit exclusifs pour les agents d'excution (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 chronomtr 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 protge contre les races de donnes et de synchronisation squentielle cohrente 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 protge contre les races de donnes et de synchronisation squentielle cohrente 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) |
dcrit une proprit 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) |
dcrit 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 proprit 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) |
agrgats d'une dure, d'un point dans le temps, et une fonction pour obtenir l'instant prsent 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 lvent 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) |
dfinit les types et fonctions pour un type de caractre 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) | |
reprsente 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) | |
reprsente un dcalage 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 numration 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? |