Namensräume
Varianten
Aktionen

std::collate::~collate

Aus cppreference.com
< cpp‎ | locale‎ | collate

 
 
Lokalisierungen Bibliothek
Locales und Facetten
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Buchstaben-Klassifikation
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversions
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet Kategorie Basisklassen
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet Kategorien
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Locale-spezifische Facetten
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Code-Konvertierung Facetten
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C locale
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::collate
Member-Funktionen
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
collate::collate
collate::~collate
collate::compare
collate::do_compare
collate::transform
collate::do_transform
collate::hash
collate::do_hash
 
Defined in header <locale>
protected: ~collate();
Zerstört sich eine std::collate Facette. Dieser Destruktor geschützt und virtuellen (aufgrund Basisklasse destructor ist virtuell). Ein Objekt vom Typ std::collate, wie die meisten Facetten, kann nur zerstört werden, wenn die letzte std::locale Objekt, das diese Facette implementiert Gültigkeitsbereich verlässt oder wenn ein Benutzer-definierte Klasse wird von std::collate abgeleitet und implementiert eine öffentliche destructor werden .
Original:
Destructs a std::collate facet. This destructor is protected and virtual (due to Basisklasse destructor being virtual). An object of type std::collate, like most facets, can only be destroyed when the last std::locale object that implements this facet goes out of scope or if a user-defined class is derived from std::collate and implements a public destructor.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel

#include <iostream>
#include <locale>
struct Destructible_collate : public std::collate<wchar_t>
{
    Destructible_collate(std::size_t refs = 0) : collate(refs) {}
    ~Destructible_collate() {}; // public dtor
};
int main()
{
    Destructible_collate dc;
    // std::collate<wchar_t> c;  // compile error: protected destructor
}