Espacios de nombres
Variantes
Acciones

std::ctype::~ctype

De cppreference.com
< cpp‎ | locale‎ | ctype

 
 
Localizaciones biblioteca
Locales y facetas
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
Carácter clasificación
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.
Conversiones
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 clases categoría base
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.
Categorías faceta
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.
Específico de la localidad facetas
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.
Facetas código de conversión
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::ctype
Las funciones miembro
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.
ctype::ctype
ctype::~ctype
ctype::is
ctype::do_is
ctype::scan_id
ctype::do_scan_id
ctype::scan_not
ctype::do_scan_not
ctype::toupper
ctype::do_toupper
ctype::tolower
ctype::do_tolower
ctype::widen
ctype::do_widen
ctype::narrow
ctype::do_narrow
 
Defined in header <locale>
protected: ~ctype();
Destructs una faceta std::ctype. Este destructor está protegido y virtual (debido a base de clase ser destructor virtual). Un objeto de std::ctype tipo, como la mayoría de las facetas, sólo puede ser destruido cuando el objeto std::locale último que implementa esta faceta se sale del ámbito o si una clase definida por el usuario se deriva de std::ctype e implementa un destructor público .
Original:
Destructs a std::ctype facet. This destructor is protected and virtual (due to base de clase destructor being virtual). An object of type std::ctype, 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::ctype 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.

[editar] Ejemplo

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