std::locale::facet
STD::locale::facet
Defined in header | | |
---|---|---|
class locale::facet; | | |
std::locale::facet是面的基类。它提供了一个公共基类,以便区域设置可以将指向它们实现的方面的指针存储在一个索引容器中,并抽象对方面引用计数的支持。每当将方面添加到区域设置中时,区域设置通过特定于实现的机制%29在facet%28中增加引用计数。每当一个区域设置被破坏或修改时,它就会减少它不再实现的每个方面中的引用计数。每当facet%27s引用计数变为零时,区域设置执行delete static_cast<std::locale::facet*>(f)何地f是指向该方面的指针。
成员函数
(constructor) | constructs a new facet with specified reference count (protected member function) |
---|---|
operator= | the copy assignment operator is deleted (protected member function) |
(destructor) virtual | the destructor is protected virtual (virtual protected member function) |
例
另见
id | the facet index type: each facet class must declare or inherit a public static member of this type (class) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。