tmp/tmpoq88ojnb/{from.md → to.md}
RENAMED
|
@@ -8,18 +8,19 @@ Sets the global locale to its argument.
|
|
| 8 |
|
| 9 |
*Effects:* Causes future calls to the constructor `locale()` to return a
|
| 10 |
copy of the argument. If the argument has a name, does
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
-
|
| 14 |
```
|
| 15 |
|
| 16 |
otherwise, the effect on the C locale, if any, is
|
| 17 |
*implementation-defined*. No library function other than
|
| 18 |
`locale::global()` shall affect the value returned by `locale()`.
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
*Returns:* The previous value of `locale()`.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
static const locale& classic();
|
|
|
|
| 8 |
|
| 9 |
*Effects:* Causes future calls to the constructor `locale()` to return a
|
| 10 |
copy of the argument. If the argument has a name, does
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
+
setlocale(LC_ALL, loc.name().c_str());
|
| 14 |
```
|
| 15 |
|
| 16 |
otherwise, the effect on the C locale, if any, is
|
| 17 |
*implementation-defined*. No library function other than
|
| 18 |
`locale::global()` shall affect the value returned by `locale()`.
|
| 19 |
+
|
| 20 |
+
[*Note 1*: See [[c.locales]] for data race considerations when
|
| 21 |
+
`setlocale` is invoked. — *end note*]
|
| 22 |
|
| 23 |
*Returns:* The previous value of `locale()`.
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
static const locale& classic();
|