tmp/tmp9wadz4ju/{from.md → to.md}
RENAMED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
### `ios_base` manipulators <a id="std.ios.manip">[[std.ios.manip]]</a>
|
| 2 |
|
| 3 |
#### `fmtflags` manipulators <a id="fmtflags.manip">[[fmtflags.manip]]</a>
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
``` cpp
|
| 6 |
ios_base& boolalpha(ios_base& str);
|
| 7 |
```
|
| 8 |
|
| 9 |
*Effects:* Calls `str.setf(ios_base::boolalpha)`.
|
|
@@ -114,10 +117,13 @@ ios_base& nounitbuf(ios_base& str);
|
|
| 114 |
|
| 115 |
*Returns:* `str`.
|
| 116 |
|
| 117 |
#### `adjustfield` manipulators <a id="adjustfield.manip">[[adjustfield.manip]]</a>
|
| 118 |
|
|
|
|
|
|
|
|
|
|
| 119 |
``` cpp
|
| 120 |
ios_base& internal(ios_base& str);
|
| 121 |
```
|
| 122 |
|
| 123 |
*Effects:* Calls `str.setf(ios_base::internal, ios_base::adjustfield)`.
|
|
@@ -140,10 +146,13 @@ ios_base& right(ios_base& str);
|
|
| 140 |
|
| 141 |
*Returns:* `str`.
|
| 142 |
|
| 143 |
#### `basefield` manipulators <a id="basefield.manip">[[basefield.manip]]</a>
|
| 144 |
|
|
|
|
|
|
|
|
|
|
| 145 |
``` cpp
|
| 146 |
ios_base& dec(ios_base& str);
|
| 147 |
```
|
| 148 |
|
| 149 |
*Effects:* Calls `str.setf(ios_base::dec, ios_base::basefield)`.
|
|
@@ -166,10 +175,13 @@ ios_base& oct(ios_base& str);
|
|
| 166 |
|
| 167 |
*Returns:* `str`.
|
| 168 |
|
| 169 |
#### `floatfield` manipulators <a id="floatfield.manip">[[floatfield.manip]]</a>
|
| 170 |
|
|
|
|
|
|
|
|
|
|
| 171 |
``` cpp
|
| 172 |
ios_base& fixed(ios_base& str);
|
| 173 |
```
|
| 174 |
|
| 175 |
*Effects:* Calls `str.setf(ios_base::fixed, ios_base::floatfield)`.
|
|
@@ -193,42 +205,16 @@ ios_base& hexfloat(ios_base& str);
|
|
| 193 |
|
| 194 |
*Returns:* `str`.
|
| 195 |
|
| 196 |
[*Note 1*: The more obvious use of `ios_base::hex` to specify
|
| 197 |
hexadecimal floating-point format would change the meaning of existing
|
| 198 |
-
well
|
| 199 |
`fixed` and `scientific`. — *end note*]
|
| 200 |
|
| 201 |
``` cpp
|
| 202 |
ios_base& defaultfloat(ios_base& str);
|
| 203 |
```
|
| 204 |
|
| 205 |
*Effects:* Calls `str.unsetf(ios_base::floatfield)`.
|
| 206 |
|
| 207 |
*Returns:* `str`.
|
| 208 |
|
| 209 |
-
#### Error reporting <a id="error.reporting">[[error.reporting]]</a>
|
| 210 |
-
|
| 211 |
-
``` cpp
|
| 212 |
-
error_code make_error_code(io_errc e) noexcept;
|
| 213 |
-
```
|
| 214 |
-
|
| 215 |
-
*Returns:* `error_code(static_cast<int>(e), iostream_category())`.
|
| 216 |
-
|
| 217 |
-
``` cpp
|
| 218 |
-
error_condition make_error_condition(io_errc e) noexcept;
|
| 219 |
-
```
|
| 220 |
-
|
| 221 |
-
*Returns:* `error_condition(static_cast<int>(e), iostream_category())`.
|
| 222 |
-
|
| 223 |
-
``` cpp
|
| 224 |
-
const error_category& iostream_category() noexcept;
|
| 225 |
-
```
|
| 226 |
-
|
| 227 |
-
*Returns:* A reference to an object of a type derived from class
|
| 228 |
-
`error_category`.
|
| 229 |
-
|
| 230 |
-
The object’s `default_error_condition` and `equivalent` virtual
|
| 231 |
-
functions shall behave as specified for the class `error_category`. The
|
| 232 |
-
object’s `name` virtual function shall return a pointer to the string
|
| 233 |
-
`"iostream"`.
|
| 234 |
-
|
|
|
|
| 1 |
### `ios_base` manipulators <a id="std.ios.manip">[[std.ios.manip]]</a>
|
| 2 |
|
| 3 |
#### `fmtflags` manipulators <a id="fmtflags.manip">[[fmtflags.manip]]</a>
|
| 4 |
|
| 5 |
+
Each function specified in this subclause is a designated addressable
|
| 6 |
+
function [[namespace.std]].
|
| 7 |
+
|
| 8 |
``` cpp
|
| 9 |
ios_base& boolalpha(ios_base& str);
|
| 10 |
```
|
| 11 |
|
| 12 |
*Effects:* Calls `str.setf(ios_base::boolalpha)`.
|
|
|
|
| 117 |
|
| 118 |
*Returns:* `str`.
|
| 119 |
|
| 120 |
#### `adjustfield` manipulators <a id="adjustfield.manip">[[adjustfield.manip]]</a>
|
| 121 |
|
| 122 |
+
Each function specified in this subclause is a designated addressable
|
| 123 |
+
function [[namespace.std]].
|
| 124 |
+
|
| 125 |
``` cpp
|
| 126 |
ios_base& internal(ios_base& str);
|
| 127 |
```
|
| 128 |
|
| 129 |
*Effects:* Calls `str.setf(ios_base::internal, ios_base::adjustfield)`.
|
|
|
|
| 146 |
|
| 147 |
*Returns:* `str`.
|
| 148 |
|
| 149 |
#### `basefield` manipulators <a id="basefield.manip">[[basefield.manip]]</a>
|
| 150 |
|
| 151 |
+
Each function specified in this subclause is a designated addressable
|
| 152 |
+
function [[namespace.std]].
|
| 153 |
+
|
| 154 |
``` cpp
|
| 155 |
ios_base& dec(ios_base& str);
|
| 156 |
```
|
| 157 |
|
| 158 |
*Effects:* Calls `str.setf(ios_base::dec, ios_base::basefield)`.
|
|
|
|
| 175 |
|
| 176 |
*Returns:* `str`.
|
| 177 |
|
| 178 |
#### `floatfield` manipulators <a id="floatfield.manip">[[floatfield.manip]]</a>
|
| 179 |
|
| 180 |
+
Each function specified in this subclause is a designated addressable
|
| 181 |
+
function [[namespace.std]].
|
| 182 |
+
|
| 183 |
``` cpp
|
| 184 |
ios_base& fixed(ios_base& str);
|
| 185 |
```
|
| 186 |
|
| 187 |
*Effects:* Calls `str.setf(ios_base::fixed, ios_base::floatfield)`.
|
|
|
|
| 205 |
|
| 206 |
*Returns:* `str`.
|
| 207 |
|
| 208 |
[*Note 1*: The more obvious use of `ios_base::hex` to specify
|
| 209 |
hexadecimal floating-point format would change the meaning of existing
|
| 210 |
+
well-defined programs. C++03 gives no meaning to the combination of
|
| 211 |
`fixed` and `scientific`. — *end note*]
|
| 212 |
|
| 213 |
``` cpp
|
| 214 |
ios_base& defaultfloat(ios_base& str);
|
| 215 |
```
|
| 216 |
|
| 217 |
*Effects:* Calls `str.unsetf(ios_base::floatfield)`.
|
| 218 |
|
| 219 |
*Returns:* `str`.
|
| 220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|