std::locale::operator==, operator!=
From cppreference.com
C++
Text processing library
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Localization library
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::locale
| Member types | ||||
| Member functions | ||||
|
(C++26)
|
||||
|
locale::operator==locale::operator!=
(until C++20)
|
||||
| Static member functions | ||||
|
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) |
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
2)
false if other is a copy of *this or has an identical name, true
Example
| This section is incomplete Reason: no example |
See also
| constructs a new locale (public member function) |
|
| returns the name of the locale or "*" if unnamed (public member function) |