std::locale::operator==,operator!= (3) - Linux Man Pages

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

NAME

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

Synopsis


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


 This section is incomplete
 Reason: no example

See also


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