tmp/tmppp0msslr/{from.md → to.md}
RENAMED
|
@@ -1,25 +1,24 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
locale imbue(const locale& loc);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* Calls each registered callback pair
|
| 8 |
-
|
| 9 |
-
`(
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
|
| 13 |
*Returns:* The previous value of `getloc()`.
|
| 14 |
|
| 15 |
-
*Postconditions:* `loc == getloc()`.
|
| 16 |
-
|
| 17 |
``` cpp
|
| 18 |
locale getloc() const;
|
| 19 |
```
|
| 20 |
|
| 21 |
-
*Returns:* If no locale has been imbued, a copy of the global C++
|
| 22 |
-
`locale()`, in effect at the time of construction. Otherwise,
|
| 23 |
-
the imbued locale, to be used to perform locale-dependent input
|
| 24 |
-
output operations.
|
| 25 |
|
|
|
|
| 1 |
+
#### Functions <a id="ios.base.locales">[[ios.base.locales]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
locale imbue(const locale& loc);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Calls each registered callback pair `(fn, idx)`
|
| 8 |
+
[[ios.base.callback]] as `(*fn)(imbue_event, *this, idx)` at such a time
|
| 9 |
+
that a call to `ios_base::getloc()` from within `fn` returns the new
|
| 10 |
+
locale value `loc`.
|
| 11 |
+
|
| 12 |
+
*Ensures:* `loc == getloc()`.
|
| 13 |
|
| 14 |
*Returns:* The previous value of `getloc()`.
|
| 15 |
|
|
|
|
|
|
|
| 16 |
``` cpp
|
| 17 |
locale getloc() const;
|
| 18 |
```
|
| 19 |
|
| 20 |
+
*Returns:* If no locale has been imbued, a copy of the global C++
|
| 21 |
+
locale, `locale()`, in effect at the time of construction. Otherwise,
|
| 22 |
+
returns the imbued locale, to be used to perform locale-dependent input
|
| 23 |
+
and output operations.
|
| 24 |
|