std::locale::facet
|
|
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>| Definido no cabeçalho <locale>
|
||
class locale::facet; |
||
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.
Funções de membro
| constructs a new facet with specified reference count (protegido função de membro) | |
operator= |
o operador de atribuição de cópia é apagado 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. (protegido função de membro) |
(destructor) [virtual] |
the destructor is protected virtual (virtual protegido função de membro) |
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
Veja também
o tipo de índice faceta: cada classe faceta deve declarar ou herdar um membro estático público deste tipo 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) | |