首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::locale::facet

Defined in header <locale>

?

?

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)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com