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 , увеличиваются. Счетчики ссылок всех фасетов, ранее содержавшихся в * this , уменьшаются, и те фасеты, чей счетчик ссылок становится равным нулю, удаляются.
Возвращаемое значение
Возвращает * this , который теперь является копией other .
Пример
|
Этот раздел не завершён
Причина: отсутствует пример |
Смотрите также
|
создает новую локаль
(public member function) |