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

std::locale::operators (operator!=)

Defined in header <locale>

?

?

bool operator==( const locale& other ) const;

(1)

?

bool operator!=( const locale& other ) const;

(2)

?

测试两个区域设置是否相等。命名区域设置如果名称相等,则视为相等。如果未命名的区域设置是彼此的副本,则认为它们是相等的。

参数

other

-

a std::locale object to compare

返回值

1%29true如果other*this或者有一个相同的名字,false否则。

2%29false如果other*this或者有一个相同的名字,true否则。

另见

(constructor)

constructs a new locale (public member function)

name

returns the name of the locale or "*" if unnamed (public member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com