tmp/tmp44kwhq5k/{from.md → to.md}
RENAMED
|
@@ -67,25 +67,25 @@ void f(basic_ios<charT, traits>& str, const moneyT& mon, bool intl) {
|
|
| 67 |
|
| 68 |
The expression `out << put_money(mon, intl)` has type
|
| 69 |
`basic_ostream<charT, traits>&` and value `out`.
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
-
template<class charT> unspecified get_time(
|
| 73 |
```
|
| 74 |
|
| 75 |
*Preconditions:* The argument `tmb` is a valid pointer to an object of
|
| 76 |
-
type `
|
| 77 |
-
|
| 78 |
|
| 79 |
*Returns:* An object of unspecified type such that if `in` is an object
|
| 80 |
of type `basic_istream<charT, traits>` then the expression
|
| 81 |
`in >> get_time(tmb, fmt)` behaves as if it called `f(in, tmb, fmt)`,
|
| 82 |
where the function `f` is defined as:
|
| 83 |
|
| 84 |
``` cpp
|
| 85 |
template<class charT, class traits>
|
| 86 |
-
void f(basic_ios<charT, traits>& str,
|
| 87 |
using Iter = istreambuf_iterator<charT, traits>;
|
| 88 |
using TimeGet = time_get<charT, Iter>;
|
| 89 |
|
| 90 |
ios_base::iostate err = ios_base::goodbit;
|
| 91 |
const TimeGet& tg = use_facet<TimeGet>(str.getloc());
|
|
@@ -100,25 +100,25 @@ void f(basic_ios<charT, traits>& str, struct tm* tmb, const charT* fmt) {
|
|
| 100 |
|
| 101 |
The expression `in >> get_time(tmb, fmt)` has type
|
| 102 |
`basic_istream<charT, traits>&` and value `in`.
|
| 103 |
|
| 104 |
``` cpp
|
| 105 |
-
template<class charT> unspecified put_time(const
|
| 106 |
```
|
| 107 |
|
| 108 |
*Preconditions:* The argument `tmb` is a valid pointer to an object of
|
| 109 |
-
type `
|
| 110 |
-
|
| 111 |
|
| 112 |
*Returns:* An object of unspecified type such that if `out` is an object
|
| 113 |
of type `basic_ostream<charT, traits>` then the expression
|
| 114 |
`out << put_time(tmb, fmt)` behaves as if it called `f(out, tmb, fmt)`,
|
| 115 |
where the function `f` is defined as:
|
| 116 |
|
| 117 |
``` cpp
|
| 118 |
template<class charT, class traits>
|
| 119 |
-
void f(basic_ios<charT, traits>& str, const
|
| 120 |
using Iter = ostreambuf_iterator<charT, traits>;
|
| 121 |
using TimePut = time_put<charT, Iter>;
|
| 122 |
|
| 123 |
const TimePut& tp = use_facet<TimePut>(str.getloc());
|
| 124 |
const Iter end = tp.put(Iter(str.rdbuf()), str, str.fill(), tmb,
|
|
|
|
| 67 |
|
| 68 |
The expression `out << put_money(mon, intl)` has type
|
| 69 |
`basic_ostream<charT, traits>&` and value `out`.
|
| 70 |
|
| 71 |
``` cpp
|
| 72 |
+
template<class charT> unspecified get_time(tm* tmb, const charT* fmt);
|
| 73 |
```
|
| 74 |
|
| 75 |
*Preconditions:* The argument `tmb` is a valid pointer to an object of
|
| 76 |
+
type `tm`, and \[`fmt`, `fmt + char_traits<charT>::length(fmt)`) is a
|
| 77 |
+
valid range.
|
| 78 |
|
| 79 |
*Returns:* An object of unspecified type such that if `in` is an object
|
| 80 |
of type `basic_istream<charT, traits>` then the expression
|
| 81 |
`in >> get_time(tmb, fmt)` behaves as if it called `f(in, tmb, fmt)`,
|
| 82 |
where the function `f` is defined as:
|
| 83 |
|
| 84 |
``` cpp
|
| 85 |
template<class charT, class traits>
|
| 86 |
+
void f(basic_ios<charT, traits>& str, tm* tmb, const charT* fmt) {
|
| 87 |
using Iter = istreambuf_iterator<charT, traits>;
|
| 88 |
using TimeGet = time_get<charT, Iter>;
|
| 89 |
|
| 90 |
ios_base::iostate err = ios_base::goodbit;
|
| 91 |
const TimeGet& tg = use_facet<TimeGet>(str.getloc());
|
|
|
|
| 100 |
|
| 101 |
The expression `in >> get_time(tmb, fmt)` has type
|
| 102 |
`basic_istream<charT, traits>&` and value `in`.
|
| 103 |
|
| 104 |
``` cpp
|
| 105 |
+
template<class charT> unspecified put_time(const tm* tmb, const charT* fmt);
|
| 106 |
```
|
| 107 |
|
| 108 |
*Preconditions:* The argument `tmb` is a valid pointer to an object of
|
| 109 |
+
type `tm`, and \[`fmt`, `fmt + char_traits<charT>::length(fmt)`) is a
|
| 110 |
+
valid range.
|
| 111 |
|
| 112 |
*Returns:* An object of unspecified type such that if `out` is an object
|
| 113 |
of type `basic_ostream<charT, traits>` then the expression
|
| 114 |
`out << put_time(tmb, fmt)` behaves as if it called `f(out, tmb, fmt)`,
|
| 115 |
where the function `f` is defined as:
|
| 116 |
|
| 117 |
``` cpp
|
| 118 |
template<class charT, class traits>
|
| 119 |
+
void f(basic_ios<charT, traits>& str, const tm* tmb, const charT* fmt) {
|
| 120 |
using Iter = ostreambuf_iterator<charT, traits>;
|
| 121 |
using TimePut = time_put<charT, Iter>;
|
| 122 |
|
| 123 |
const TimePut& tp = use_facet<TimePut>(str.getloc());
|
| 124 |
const Iter end = tp.put(Iter(str.rdbuf()), str, str.fill(), tmb,
|