From Jason Turner

[locale.nm.put]

Diff to HTML by rtfpessoa

tmp/tmp6o9p27yu/{from.md → to.md} RENAMED
@@ -1,8 +1,8 @@
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 {
@@ -38,11 +38,11 @@ namespace std {
38
  ```
39
 
40
  The facet `num_put` is used to format numeric values to a character
41
  sequence such as an ostream.
42
 
43
- ##### Members <a id="facet.num.put.members">[[facet.num.put.members]]</a>
44
 
45
  ``` cpp
46
  iter_type put(iter_type out, ios_base& str, char_type fill, bool val) const;
47
  iter_type put(iter_type out, ios_base& str, char_type fill, long val) const;
48
  iter_type put(iter_type out, ios_base& str, char_type fill, long long val) const;
@@ -53,11 +53,11 @@ iter_type put(iter_type out, ios_base& str, char_type fill, long double val) con
53
  iter_type put(iter_type out, ios_base& str, char_type fill, const void* val) const;
54
  ```
55
 
56
  *Returns:* `do_put(out, str, fill, val)`.
57
 
58
- ##### Virtual functions <a id="facet.num.put.virtuals">[[facet.num.put.virtuals]]</a>
59
 
60
  ``` cpp
61
  iter_type do_put(iter_type out, ios_base& str, char_type fill, long val) const;
62
  iter_type do_put(iter_type out, ios_base& str, char_type fill, long long val) const;
63
  iter_type do_put(iter_type out, ios_base& str, char_type fill, unsigned long val) const;
@@ -136,11 +136,12 @@ floating-point conversion specifier as indicated in
136
 
137
  **Table: Floating-point conversions** <a id="facet.num.put.fp">[facet.num.put.fp]</a>
138
 
139
  | State | `stdio` equivalent |
140
  | ---------------------------------------------------------------------- | ------------------ |
141
- | `floatfield == ios_base::fixed` | `%f` |
 
142
  | `floatfield == ios_base::scientific && !uppercase` | `%e` |
143
  | `floatfield == ios_base::scientific` | `%E` |
144
  | `floatfield == (ios_base::fixed | ios_base::scientific) && !uppercase` | `%a` |
145
  | `floatfield == (ios_base::fixed | ios_base::scientific)` | `%A` |
146
  | `!uppercase` | `%g` |
 
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 {
 
38
  ```
39
 
40
  The facet `num_put` is used to format numeric values to a character
41
  sequence such as an ostream.
42
 
43
+ ###### Members <a id="facet.num.put.members">[[facet.num.put.members]]</a>
44
 
45
  ``` cpp
46
  iter_type put(iter_type out, ios_base& str, char_type fill, bool val) const;
47
  iter_type put(iter_type out, ios_base& str, char_type fill, long val) const;
48
  iter_type put(iter_type out, ios_base& str, char_type fill, long long val) const;
 
53
  iter_type put(iter_type out, ios_base& str, char_type fill, const void* val) const;
54
  ```
55
 
56
  *Returns:* `do_put(out, str, fill, val)`.
57
 
58
+ ###### Virtual functions <a id="facet.num.put.virtuals">[[facet.num.put.virtuals]]</a>
59
 
60
  ``` cpp
61
  iter_type do_put(iter_type out, ios_base& str, char_type fill, long val) const;
62
  iter_type do_put(iter_type out, ios_base& str, char_type fill, long long val) const;
63
  iter_type do_put(iter_type out, ios_base& str, char_type fill, unsigned long val) const;
 
136
 
137
  **Table: Floating-point conversions** <a id="facet.num.put.fp">[facet.num.put.fp]</a>
138
 
139
  | State | `stdio` equivalent |
140
  | ---------------------------------------------------------------------- | ------------------ |
141
+ | `floatfield == ios_base::fixed && !uppercase` | `%f` |
142
+ | `floatfield == ios_base::fixed` | `%F` |
143
  | `floatfield == ios_base::scientific && !uppercase` | `%e` |
144
  | `floatfield == ios_base::scientific` | `%E` |
145
  | `floatfield == (ios_base::fixed | ios_base::scientific) && !uppercase` | `%a` |
146
  | `floatfield == (ios_base::fixed | ios_base::scientific)` | `%A` |
147
  | `!uppercase` | `%g` |