Defined in header <locale> | ||
|---|---|---|
bool operator==( const locale& other ) const; | (1) | |
bool operator!=( const locale& other ) const; | (2) | (until C++20) |
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.
| The | (since C++20) |
| other | - | a std::locale object to compare |
true if other is a copy of *this or has an identical name, false otherwise.false if other is a copy of *this or has an identical name, true otherwise.| 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.
https://en.cppreference.com/w/cpp/locale/locale/operator_cmp