From Jason Turner

[locale.money.put]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbsrzuxpf/{from.md → to.md} +13 -12
tmp/tmpbsrzuxpf/{from.md → to.md} RENAMED
@@ -1,16 +1,15 @@
1
  #### Class template `money_put` <a id="locale.money.put">[[locale.money.put]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
- template <class charT,
6
- class OutputIterator = ostreambuf_iterator<charT> >
7
  class money_put : public locale::facet {
8
  public:
9
- typedef charT char_type;
10
- typedef OutputIterator iter_type;
11
- typedef basic_string<charT> string_type;
12
 
13
  explicit money_put(size_t refs = 0);
14
 
15
  iter_type put(iter_type s, bool intl, ios_base& f,
16
  char_type fill, long double units) const;
@@ -36,11 +35,11 @@ iter_type put(iter_type s, bool intl, ios_base& f, char_type fill,
36
  long double quant) const;
37
  iter_type put(iter_type s, bool intl, ios_base& f, char_type fill,
38
  const string_type& quant) const;
39
  ```
40
 
41
- *Returns:* `do_put(s, intl, f, loc, quant)`
42
 
43
  ##### `money_put` virtual functions <a id="locale.money.put.virtuals">[[locale.money.put.virtuals]]</a>
44
 
45
  ``` cpp
46
  iter_type do_put(iter_type s, bool intl, ios_base& str,
@@ -75,15 +74,17 @@ Calls `str.width(0)`.
75
  `(str.flags() & str.showbase)` is nonzero. If the number of characters
76
  generated for the specified format is less than the value returned by
77
  `str.width()` on entry to the function, then copies of `fill` are
78
  inserted as necessary to pad to the specified width. For the value `af`
79
  equal to `(str.flags() & str.adjustfield)`, if `(af == str.internal)` is
80
- true, the fill characters are placed where `none` or `space` appears in
81
- the formatting pattern; otherwise if `(af == str.left)` is true, they
82
- are placed after the other characters; otherwise, they are placed before
83
- the other characters. It is possible, with some combinations of format
84
- patterns and flag values, to produce output that cannot be parsed using
85
- `num_get<>::get`.
 
 
86
 
87
  *Returns:* An iterator pointing immediately after the last character
88
  produced.
89
 
 
1
  #### Class template `money_put` <a id="locale.money.put">[[locale.money.put]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
+ template <class charT, class OutputIterator = ostreambuf_iterator<charT>>
 
6
  class money_put : public locale::facet {
7
  public:
8
+ using char_type = charT;
9
+ using iter_type = OutputIterator;
10
+ using string_type = basic_string<charT>;
11
 
12
  explicit money_put(size_t refs = 0);
13
 
14
  iter_type put(iter_type s, bool intl, ios_base& f,
15
  char_type fill, long double units) const;
 
35
  long double quant) const;
36
  iter_type put(iter_type s, bool intl, ios_base& f, char_type fill,
37
  const string_type& quant) const;
38
  ```
39
 
40
+ *Returns:* `do_put(s, intl, f, loc, quant)`.
41
 
42
  ##### `money_put` virtual functions <a id="locale.money.put.virtuals">[[locale.money.put.virtuals]]</a>
43
 
44
  ``` cpp
45
  iter_type do_put(iter_type s, bool intl, ios_base& str,
 
74
  `(str.flags() & str.showbase)` is nonzero. If the number of characters
75
  generated for the specified format is less than the value returned by
76
  `str.width()` on entry to the function, then copies of `fill` are
77
  inserted as necessary to pad to the specified width. For the value `af`
78
  equal to `(str.flags() & str.adjustfield)`, if `(af == str.internal)` is
79
+ `true`, the fill characters are placed where `none` or `space` appears
80
+ in the formatting pattern; otherwise if `(af == str.left)` is `true`,
81
+ they are placed after the other characters; otherwise, they are placed
82
+ before the other characters.
83
+
84
+ [*Note 1*: It is possible, with some combinations of format patterns
85
+ and flag values, to produce output that cannot be parsed using
86
+ `num_get<>::get`. — *end note*]
87
 
88
  *Returns:* An iterator pointing immediately after the last character
89
  produced.
90