const locale& operator=(const locale& other) noexcept; // (1) C++98
概要
localeオブジェクトを代入する。
効果
*thisがotherと同じロケールを表すようにする。以降、*thisとotherは同じファセット集合を共有する。
戻り値
*this
例外
投げない。
例
#include <cassert>
#include <locale>
int main()
{
std::locale a = std::locale::classic();
std::locale b;
b = a; // 代入
assert(a == b);
}
出力
バージョン
言語
- C++98