tmp/tmp_hww4qod/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Exists <a id="fs.op.exists">[[fs.op.exists]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
bool exists(file_status s) noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Returns:* `status_known(s) && s.type() != file_type::not_found`.
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
bool exists(const path& p);
|
| 11 |
+
bool exists(const path& p, error_code& ec) noexcept;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
Let `s` be a `file_status`, determined as if by `status(p)` or
|
| 15 |
+
`status(p, ec)`, respectively.
|
| 16 |
+
|
| 17 |
+
*Effects:* The signature with argument `ec` calls `ec.clear()` if
|
| 18 |
+
`status_known(s)`.
|
| 19 |
+
|
| 20 |
+
*Returns:* `exists(s)`.
|
| 21 |
+
|
| 22 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 23 |
+
|