tmp/tmpixo39v67/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
##### Members <a id="locale.time.put.members">[[locale.time.put.members]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
| 5 |
const charT* pattern, const charT* pat_end) const;
|
| 6 |
iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
|
@@ -15,20 +15,18 @@ call to `do_put`; thus, format elements and other characters are
|
|
| 15 |
interleaved in the output in the order in which they appear in the
|
| 16 |
pattern. Format sequences are identified by converting each character
|
| 17 |
`c` to a `char` value as if by `ct.narrow(c, 0)`, where `ct` is a
|
| 18 |
reference to `ctype<charT>` obtained from `str.getloc()`. The first
|
| 19 |
character of each sequence is equal to `’%’`, followed by an optional
|
| 20 |
-
modifier character `mod`
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
`strftime`. If no modifier character is present, `mod` is zero. For each
|
| 24 |
-
valid format sequence identified, calls
|
| 25 |
`do_put(s, str, fill, t, spec, mod)`.
|
| 26 |
|
| 27 |
The second form calls `do_put(s, str, fill, t, format, modifier)`.
|
| 28 |
|
| 29 |
-
[*Note
|
| 30 |
implementation-defined formats or by derivations. A space character is a
|
| 31 |
reasonable default for this argument. — *end note*]
|
| 32 |
|
| 33 |
*Returns:* An iterator pointing immediately after the last character
|
| 34 |
produced.
|
|
|
|
| 1 |
+
###### Members <a id="locale.time.put.members">[[locale.time.put.members]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
| 5 |
const charT* pattern, const charT* pat_end) const;
|
| 6 |
iter_type put(iter_type s, ios_base& str, char_type fill, const tm* t,
|
|
|
|
| 15 |
interleaved in the output in the order in which they appear in the
|
| 16 |
pattern. Format sequences are identified by converting each character
|
| 17 |
`c` to a `char` value as if by `ct.narrow(c, 0)`, where `ct` is a
|
| 18 |
reference to `ctype<charT>` obtained from `str.getloc()`. The first
|
| 19 |
character of each sequence is equal to `’%’`, followed by an optional
|
| 20 |
+
modifier character `mod` and a format specifier character `spec` as
|
| 21 |
+
defined for the function `strftime`. If no modifier character is
|
| 22 |
+
present, `mod` is zero. For each valid format sequence identified, calls
|
|
|
|
|
|
|
| 23 |
`do_put(s, str, fill, t, spec, mod)`.
|
| 24 |
|
| 25 |
The second form calls `do_put(s, str, fill, t, format, modifier)`.
|
| 26 |
|
| 27 |
+
[*Note 2*: The `fill` argument can be used in the
|
| 28 |
implementation-defined formats or by derivations. A space character is a
|
| 29 |
reasonable default for this argument. — *end note*]
|
| 30 |
|
| 31 |
*Returns:* An iterator pointing immediately after the last character
|
| 32 |
produced.
|