Namespaces
Variants

std::locale:: operator=

From cppreference.net
const locale & operator = ( const locale & other ) throw ( ) ;
(C++11まで)
const locale & operator = ( const locale & other ) noexcept ;
(C++11以降)

other のコピーを作成し、 * this の内容を置き換えます。 other が保持するすべてのファセットの参照カウントがインクリメントされます。 * this が以前保持していたすべてのファセットの参照カウントはデクリメントされ、参照カウントがゼロになったファセットは削除されます。

戻り値

* this を返します。これは現在 other のコピーです。

関連項目

新しいロケールを構築する
(public member function)