最終更新日時(UTC):
が更新

履歴 編集

function
<locale>

std::locale::operator!=

// operator==により、以下のオーバーロードが使用可能になる (C++20)
bool operator!=(const locale& other) const; // (1) C++03

概要

localeオブジェクトの非等値比較を行う。

戻り値

return !(*this == other);

#include <cassert>
#include <locale>

int main()
{
  std::locale a = std::locale::classic();
  std::locale b = std::locale::classic();
  std::locale c("");

  assert(!(a != b));
  assert(a != c);
}

出力

参照