std::ctype <char> :: ~ctype
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Member functions of ctype<char> | ||||
|
ctype<char>::~ctype
|
||||
|
定义于头文件
<locale>
|
||
|
protected
:
~ctype
(
)
;
|
||
析构一个 std:: ctype < char > facet。此析构函数为受保护且虚函数(由于 基类 析构函数为虚函数)。类型为 std:: ctype < char > 的对象与大多数facet一样,仅当最后一个实现此facet的 std::locale 对象超出作用域时,或当用户自定义类继承自 std:: ctype < char > 并实现了公共析构函数时才能被销毁。
如果在构造此
std::
ctype
<
char
>
实例时提供了自定义分类表,且构造函数的第二个参数(布尔值
del
)为
true
,则此析构函数将执行
delete
[
]
table
(
)
。