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 持有的所有facet的引用计数会增加。 * this 先前持有的所有facet的引用计数会减少,且引用计数归零的facet将被删除。

返回值

返回 * this ,它现在是 other 的副本。

示例

参见

构造新的 locale
(公开成员函数)