locale::operator!=

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

The member function returns !(*this == x).