std::locale::facet

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

 
 
 
std::locale
会员类型
原文:
Member types
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
locale::facet
成员函数
原文:
Member functions
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
静态成员函数
原文:
Static member functions
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。
 
定义于头文件 <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
(虚受保护成员函数)

[编辑] 示例

[编辑] 另请参阅

方面索引类型:每个面类必须声明或继承这种类型的公共静态成员
原文:
the facet index type: each facet class must declare or inherit a public static member of this type
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

(类) [编辑]