std::locale::facet
De cppreference.com
|
|
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/>
<tbody> </tbody>| Déclaré dans l'en-tête <locale>
|
||
class locale::facet; |
||
std::locale::facet est la classe de base pour les facettes. Il fournit une classe de base commune pour que les locales pourraient stocker des pointeurs vers les facettes qu'ils mettent en œuvre dans un seul conteneur indexée, et il fait abstraction de soutien pour le comptage de référence facette. Chaque fois qu'une facette est ajouté à un environnement local, les incréments de comptage locale de la référence à la facette (grâce à un mécanisme de mise en oeuvre spécifique). Chaque fois que les paramètres régionaux sont détruits ou modifiés, il décrémente le nombre de références dans chaque facette de l'œuvre n'est plus. Comptage de référence chaque fois une facette devient nulle, le lieu où
delete static_cast<std::locale::facet*>(f) effectue f est le pointeur de la facette .Original:
std::locale::facet is the base class for facets. It provides a common base class so that locales could store pointers to the facets they implement in a single indexed container, and it abstracts support for facet reference counting. Whenever a facet is added to a locale, the locale increments the reference count in the facet (through an implementation-specific mechanism). Whenever a locale is destructed or modified, it decrements the reference count in each facet it no longer implements. Whenever a facet's reference count becomes zero, the locale performs
delete static_cast<std::locale::facet*>(f) where f is the pointer to the facet.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.
Fonctions membres
construit une nouvelle facette avec compteur de référence spécifié Original: constructs a new facet with specified reference count The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre protégée) | |
operator= |
l'opérateur d'affectation de copie est supprimée Original: the copy assignment operator is deleted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre protégée) |
(destructor) [ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
the destructor is protected virtual (fonction membre virtuelle protégée) |
Exemple
| This section is incomplete Reason: no example |
Voir aussi
le type d'index facettes: chaque classe doit déclarer facette ou d'hériter d'un membre statique public de ce type Original: the facet index type: each facet class must declare or inherit a public static member of this type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) | |