tmp/tmp083zqq_n/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
##### Type `ios_base::fmtflags` <a id="ios.fmtflags">[[ios.fmtflags]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
using fmtflags = T1;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
The type `fmtflags` is a bitmask type [[bitmask.types]]. Setting its
|
| 8 |
+
elements has the effects indicated in [[ios.fmtflags]].
|
| 9 |
+
|
| 10 |
+
**Table: `fmtflags` effects** <a id="ios.fmtflags">[ios.fmtflags]</a>
|
| 11 |
+
|
| 12 |
+
| Element | Effect(s) if set |
|
| 13 |
+
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
|
| 14 |
+
| `boolalpha` | insert and extract `bool` type in alphabetic format |
|
| 15 |
+
| `dec` | converts integer input or generates integer output in decimal base |
|
| 16 |
+
| `fixed` | generate floating-point output in fixed-point notation |
|
| 17 |
+
| `hex` | converts integer input or generates integer output in hexadecimal base |
|
| 18 |
+
| `internal` | adds fill characters at a designated internal point in certain generated output, or identical to `right` if no such point is designated |
|
| 19 |
+
| `left` | adds fill characters on the right (final positions) of certain generated output |
|
| 20 |
+
| `oct` | converts integer input or generates integer output in octal base |
|
| 21 |
+
| `right` | adds fill characters on the left (initial positions) of certain generated output |
|
| 22 |
+
| `scientific` | generates floating-point output in scientific notation |
|
| 23 |
+
| `showbase` | generates a prefix indicating the numeric base of generated integer output |
|
| 24 |
+
| `showpoint` | generates a decimal-point character unconditionally in generated floating-point output |
|
| 25 |
+
| `showpos` | generates a `+` sign in non-negative generated numeric output |
|
| 26 |
+
| `skipws` | skips leading whitespace before certain input operations |
|
| 27 |
+
| `unitbuf` | flushes output after each output operation |
|
| 28 |
+
| `uppercase` | replaces certain lowercase letters with their uppercase equivalents in generated output |
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
Type `fmtflags` also defines the constants indicated in
|
| 32 |
+
[[ios.fmtflags.const]].
|
| 33 |
+
|
| 34 |
+
**Table: `fmtflags` constants** <a id="ios.fmtflags.const">[ios.fmtflags.const]</a>
|
| 35 |
+
|
| 36 |
+
| Constant | Allowable values |
|
| 37 |
+
| ------------- | ------------------------- |
|
| 38 |
+
| `adjustfield` | `left | right | internal` |
|
| 39 |
+
| `basefield` | `dec | oct | hex` |
|
| 40 |
+
| `floatfield` | `scientific | fixed` |
|
| 41 |
+
|
| 42 |
+
|