std::locale:: operator=
From cppreference.net
C++
Text processing library
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Localization library
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::locale
| Member types | ||||
| Member functions | ||||
|
locale::operator=
|
||||
|
(C++26)
|
||||
|
(until C++20)
|
||||
| Static member functions | ||||
|
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
(公开成员函数) |