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) |
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com