tmp/tmpbg661gp4/{from.md → to.md}
RENAMED
|
@@ -20,14 +20,14 @@ void f(ios_base& str, ios_base::fmtflags mask) {
|
|
| 20 |
// reset specified flags
|
| 21 |
str.setf(ios_base::fmtflags(0), mask);
|
| 22 |
}
|
| 23 |
```
|
| 24 |
|
| 25 |
-
The expression `out << resetiosflags(mask)`
|
| 26 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 27 |
-
`in >> resetiosflags(mask)`
|
| 28 |
-
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
unspecified setiosflags(ios_base::fmtflags mask);
|
| 32 |
```
|
| 33 |
|
|
@@ -43,14 +43,14 @@ void f(ios_base& str, ios_base::fmtflags mask) {
|
|
| 43 |
// set specified flags
|
| 44 |
str.setf(mask);
|
| 45 |
}
|
| 46 |
```
|
| 47 |
|
| 48 |
-
The expression `out << setiosflags(mask)`
|
| 49 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 50 |
-
`in >> setiosflags(mask)`
|
| 51 |
-
|
| 52 |
|
| 53 |
``` cpp
|
| 54 |
unspecified setbase(int base);
|
| 55 |
```
|
| 56 |
|
|
@@ -69,14 +69,14 @@ void f(ios_base& str, int base) {
|
|
| 69 |
base == 16 ? ios_base::hex :
|
| 70 |
ios_base::fmtflags(0), ios_base::basefield);
|
| 71 |
}
|
| 72 |
```
|
| 73 |
|
| 74 |
-
The expression `out << setbase(base)`
|
| 75 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 76 |
-
`in >> setbase(base)`
|
| 77 |
-
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
unspecified setfill(char_type c);
|
| 81 |
```
|
| 82 |
|
|
@@ -91,11 +91,11 @@ void f(basic_ios<charT, traits>& str, charT c) {
|
|
| 91 |
// set fill character
|
| 92 |
str.fill(c);
|
| 93 |
}
|
| 94 |
```
|
| 95 |
|
| 96 |
-
The expression `out << setfill(c)`
|
| 97 |
`basic_ostream<charT, traits>&` and value `out`.
|
| 98 |
|
| 99 |
``` cpp
|
| 100 |
unspecified setprecision(int n);
|
| 101 |
```
|
|
@@ -112,14 +112,14 @@ void f(ios_base& str, int n) {
|
|
| 112 |
// set precision
|
| 113 |
str.precision(n);
|
| 114 |
}
|
| 115 |
```
|
| 116 |
|
| 117 |
-
The expression `out << setprecision(n)`
|
| 118 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 119 |
-
`in >> setprecision(n)`
|
| 120 |
-
|
| 121 |
|
| 122 |
``` cpp
|
| 123 |
unspecified setw(int n);
|
| 124 |
```
|
| 125 |
|
|
@@ -135,10 +135,9 @@ void f(ios_base& str, int n) {
|
|
| 135 |
// set width
|
| 136 |
str.width(n);
|
| 137 |
}
|
| 138 |
```
|
| 139 |
|
| 140 |
-
The expression `out << setw(n)`
|
| 141 |
-
|
| 142 |
-
`
|
| 143 |
-
value `in`.
|
| 144 |
|
|
|
|
| 20 |
// reset specified flags
|
| 21 |
str.setf(ios_base::fmtflags(0), mask);
|
| 22 |
}
|
| 23 |
```
|
| 24 |
|
| 25 |
+
The expression `out << resetiosflags(mask)` has type
|
| 26 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 27 |
+
`in >> resetiosflags(mask)` has type `basic_istream<charT, traits>&` and
|
| 28 |
+
value `in`.
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
unspecified setiosflags(ios_base::fmtflags mask);
|
| 32 |
```
|
| 33 |
|
|
|
|
| 43 |
// set specified flags
|
| 44 |
str.setf(mask);
|
| 45 |
}
|
| 46 |
```
|
| 47 |
|
| 48 |
+
The expression `out << setiosflags(mask)` has type
|
| 49 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 50 |
+
`in >> setiosflags(mask)` has type `basic_istream<charT, traits>&` and
|
| 51 |
+
value `in`.
|
| 52 |
|
| 53 |
``` cpp
|
| 54 |
unspecified setbase(int base);
|
| 55 |
```
|
| 56 |
|
|
|
|
| 69 |
base == 16 ? ios_base::hex :
|
| 70 |
ios_base::fmtflags(0), ios_base::basefield);
|
| 71 |
}
|
| 72 |
```
|
| 73 |
|
| 74 |
+
The expression `out << setbase(base)` has type
|
| 75 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 76 |
+
`in >> setbase(base)` has type `basic_istream<charT, traits>&` and value
|
| 77 |
+
`in`.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
unspecified setfill(char_type c);
|
| 81 |
```
|
| 82 |
|
|
|
|
| 91 |
// set fill character
|
| 92 |
str.fill(c);
|
| 93 |
}
|
| 94 |
```
|
| 95 |
|
| 96 |
+
The expression `out << setfill(c)` has type
|
| 97 |
`basic_ostream<charT, traits>&` and value `out`.
|
| 98 |
|
| 99 |
``` cpp
|
| 100 |
unspecified setprecision(int n);
|
| 101 |
```
|
|
|
|
| 112 |
// set precision
|
| 113 |
str.precision(n);
|
| 114 |
}
|
| 115 |
```
|
| 116 |
|
| 117 |
+
The expression `out << setprecision(n)` has type
|
| 118 |
`basic_ostream<charT, traits>&` and value `out`. The expression
|
| 119 |
+
`in >> setprecision(n)` has type `basic_istream<charT, traits>&` and
|
| 120 |
+
value `in`.
|
| 121 |
|
| 122 |
``` cpp
|
| 123 |
unspecified setw(int n);
|
| 124 |
```
|
| 125 |
|
|
|
|
| 135 |
// set width
|
| 136 |
str.width(n);
|
| 137 |
}
|
| 138 |
```
|
| 139 |
|
| 140 |
+
The expression `out << setw(n)` has type `basic_ostream<charT, traits>&`
|
| 141 |
+
and value `out`. The expression `in >> setw(n)` has type
|
| 142 |
+
`basic_istream<charT, traits>&` and value `in`.
|
|
|
|
| 143 |
|