locale::operator==

bool operator==(const locale& x) const;

The member function returns true only if *this and x are copies of the same locale or have the same name (other than "*").