std::locale::facet

来自cppreference.com
< cpp‎ | locale‎ | locale

定义于头文件 <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.

[编辑] 成员函数

constructs a new facet with specified reference count
(受保护成员函数)
operator=
拷贝赋值运算符将被删除
原文:
the copy assignment operator is deleted
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

(受保护成员函数)
(析构函数)
[虚]
the destructor is protected virtual
(虚受保护成员函数)

[编辑] 示例

[编辑] 另请参阅

平面索引类型:每个平面类必须声明或继承此类型的公开静态成员
(类) [编辑]