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

std::locale::operator==, operator!=

Defined in header <locale>
bool operator==( const locale& other ) const;
(1)
bool operator!=( const locale& other ) const;
(2)

Tests two locales for equality. Named locales are considered equal if their names are equal. Unnamed locales are considered equal if they are copies of each other.

Parameters

other - a std::locale object to compare

Return value

1) true if other is a copy of *this or has an identical name, false otherwise.

2) false if other is a copy of *this or has an identical name, true otherwise.

Example

See also

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/locale/locale/operator_cmp

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部