tmp/tmpvak0n52w/{from.md → to.md}
RENAMED
|
@@ -1,23 +1,24 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
static locale global(const locale& loc);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
Sets the global locale to its argument.
|
| 8 |
-
|
| 9 |
-
|
| 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*.
|
| 18 |
-
|
|
|
|
|
|
|
| 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()`.
|
|
|
|
| 1 |
+
#### Static members <a id="locale.statics">[[locale.statics]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
static locale global(const locale& loc);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Sets the global locale to its argument. Causes future calls
|
| 8 |
+
to the constructor `locale()` to return a copy of the argument. If the
|
| 9 |
+
argument has a name, does
|
|
|
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
setlocale(LC_ALL, loc.name().c_str());
|
| 13 |
```
|
| 14 |
|
| 15 |
otherwise, the effect on the C locale, if any, is
|
| 16 |
+
*implementation-defined*.
|
| 17 |
+
|
| 18 |
+
*Remarks:* No library function other than `locale::global()` affects the
|
| 19 |
+
value returned by `locale()`.
|
| 20 |
|
| 21 |
[*Note 1*: See [[c.locales]] for data race considerations when
|
| 22 |
`setlocale` is invoked. — *end note*]
|
| 23 |
|
| 24 |
*Returns:* The previous value of `locale()`.
|