tmp/tmp_dj3gv4w/{from.md → to.md}
RENAMED
|
@@ -121,15 +121,16 @@ The type `openmode` is a bitmask type [[bitmask.types]]. It contains the
|
|
| 121 |
elements indicated in [[ios.openmode]].
|
| 122 |
|
| 123 |
**Table: `openmode` effects** <a id="ios.openmode">[ios.openmode]</a>
|
| 124 |
|
| 125 |
| Element | Effect(s) if set |
|
| 126 |
-
| -------- | ----------------------------------------------------------------- |
|
| 127 |
| `app` | seek to end before each write |
|
| 128 |
| `ate` | open and seek to end immediately after opening |
|
| 129 |
| `binary` | perform input and output in binary mode (as opposed to text mode) |
|
| 130 |
| `in` | open for input |
|
|
|
|
| 131 |
| `out` | open for output |
|
| 132 |
| `trunc` | truncate an existing stream when opening |
|
| 133 |
|
| 134 |
|
| 135 |
##### Type `ios_base::seekdir` <a id="ios.seekdir">[[ios.seekdir]]</a>
|
|
@@ -158,10 +159,11 @@ namespace std {
|
|
| 158 |
public:
|
| 159 |
Init();
|
| 160 |
Init(const Init&) = default;
|
| 161 |
~Init();
|
| 162 |
Init& operator=(const Init&) = default;
|
|
|
|
| 163 |
private:
|
| 164 |
static int init_cnt; // exposition only
|
| 165 |
};
|
| 166 |
}
|
| 167 |
```
|
|
|
|
| 121 |
elements indicated in [[ios.openmode]].
|
| 122 |
|
| 123 |
**Table: `openmode` effects** <a id="ios.openmode">[ios.openmode]</a>
|
| 124 |
|
| 125 |
| Element | Effect(s) if set |
|
| 126 |
+
| ----------- | ----------------------------------------------------------------- |
|
| 127 |
| `app` | seek to end before each write |
|
| 128 |
| `ate` | open and seek to end immediately after opening |
|
| 129 |
| `binary` | perform input and output in binary mode (as opposed to text mode) |
|
| 130 |
| `in` | open for input |
|
| 131 |
+
| `noreplace` | open in exclusive mode |
|
| 132 |
| `out` | open for output |
|
| 133 |
| `trunc` | truncate an existing stream when opening |
|
| 134 |
|
| 135 |
|
| 136 |
##### Type `ios_base::seekdir` <a id="ios.seekdir">[[ios.seekdir]]</a>
|
|
|
|
| 159 |
public:
|
| 160 |
Init();
|
| 161 |
Init(const Init&) = default;
|
| 162 |
~Init();
|
| 163 |
Init& operator=(const Init&) = default;
|
| 164 |
+
|
| 165 |
private:
|
| 166 |
static int init_cnt; // exposition only
|
| 167 |
};
|
| 168 |
}
|
| 169 |
```
|