std::locale::operator==, operator!=
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
Localization library
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
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 !=
operator is synthesized from operator==
.
Contents
[edit] Parameters
other
-
a std::locale object to compare
[edit] 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.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example