tmp/tmpl7p39_a5/{from.md → to.md}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
#### Class template `num_put` <a id="locale.nm.put">[[locale.nm.put]]</a>
|
| 2 |
|
|
|
|
|
|
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template<class charT, class OutputIterator = ostreambuf_iterator<charT>>
|
| 6 |
class num_put : public locale::facet {
|
| 7 |
public:
|
|
@@ -201,24 +203,25 @@ const numpunct<charT>& punct = use_facet<numpunct<charT>>(loc);
|
|
| 201 |
```
|
| 202 |
|
| 203 |
For arithmetic types, `punct.thousands_sep()` characters are inserted
|
| 204 |
into the sequence as determined by the value returned by
|
| 205 |
`punct.do_grouping()` using the method described
|
| 206 |
-
in [[facet.numpunct.virtuals]]
|
| 207 |
|
| 208 |
-
Decimal point characters(.) are replaced by `punct.decimal_point()`
|
| 209 |
|
| 210 |
- **Stage 3:**
|
| 211 |
|
| 212 |
A local variable is initialized as
|
| 213 |
|
| 214 |
``` cpp
|
| 215 |
fmtflags adjustfield = (flags & (ios_base::adjustfield));
|
| 216 |
```
|
| 217 |
|
| 218 |
-
The location of any padding[^12]
|
| 219 |
-
|
|
|
|
| 220 |
|
| 221 |
**Table: Fill padding** <a id="facet.num.put.fill">[facet.num.put.fill]</a>
|
| 222 |
|
| 223 |
| State | Location |
|
| 224 |
| ------------------------------------------------------------------------------ | ------------------ |
|
|
|
|
| 1 |
#### Class template `num_put` <a id="locale.nm.put">[[locale.nm.put]]</a>
|
| 2 |
|
| 3 |
+
##### General <a id="locale.nm.put.general">[[locale.nm.put.general]]</a>
|
| 4 |
+
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<class charT, class OutputIterator = ostreambuf_iterator<charT>>
|
| 8 |
class num_put : public locale::facet {
|
| 9 |
public:
|
|
|
|
| 203 |
```
|
| 204 |
|
| 205 |
For arithmetic types, `punct.thousands_sep()` characters are inserted
|
| 206 |
into the sequence as determined by the value returned by
|
| 207 |
`punct.do_grouping()` using the method described
|
| 208 |
+
in [[facet.numpunct.virtuals]].
|
| 209 |
|
| 210 |
+
Decimal point characters(.) are replaced by `punct.decimal_point()`.
|
| 211 |
|
| 212 |
- **Stage 3:**
|
| 213 |
|
| 214 |
A local variable is initialized as
|
| 215 |
|
| 216 |
``` cpp
|
| 217 |
fmtflags adjustfield = (flags & (ios_base::adjustfield));
|
| 218 |
```
|
| 219 |
|
| 220 |
+
The location of any padding[^12]
|
| 221 |
+
|
| 222 |
+
is determined according to [[facet.num.put.fill]].
|
| 223 |
|
| 224 |
**Table: Fill padding** <a id="facet.num.put.fill">[facet.num.put.fill]</a>
|
| 225 |
|
| 226 |
| State | Location |
|
| 227 |
| ------------------------------------------------------------------------------ | ------------------ |
|