tmp/tmpwxsl5u6_/{from.md → to.md}
RENAMED
|
@@ -71,11 +71,11 @@ performed the following code fragment:
|
|
| 71 |
|
| 72 |
``` cpp
|
| 73 |
bool failed = use_facet<
|
| 74 |
num_put<charT,ostreambuf_iterator<charT,traits> >
|
| 75 |
>(getloc()).put(*this, *this, fill(),
|
| 76 |
-
static_cast<double>(
|
| 77 |
```
|
| 78 |
|
| 79 |
The first argument provides an object of the `ostreambuf_iterator<>`
|
| 80 |
class which is an iterator for class `basic_ostream<>`. It bypasses
|
| 81 |
`ostream`s and uses `streambuf`s directly. Class `locale` relies on
|
|
|
|
| 71 |
|
| 72 |
``` cpp
|
| 73 |
bool failed = use_facet<
|
| 74 |
num_put<charT,ostreambuf_iterator<charT,traits> >
|
| 75 |
>(getloc()).put(*this, *this, fill(),
|
| 76 |
+
static_cast<double>(val)).failed();
|
| 77 |
```
|
| 78 |
|
| 79 |
The first argument provides an object of the `ostreambuf_iterator<>`
|
| 80 |
class which is an iterator for class `basic_ostream<>`. It bypasses
|
| 81 |
`ostream`s and uses `streambuf`s directly. Class `locale` relies on
|