tmp/tmpljbdhleh/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Proximate <a id="fs.op.proximate">[[fs.op.proximate]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
path proximate(const path& p, error_code& ec);
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Returns:* `proximate(p, current_path(), ec)`.
|
| 8 |
+
|
| 9 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 10 |
+
|
| 11 |
+
``` cpp
|
| 12 |
+
path proximate(const path& p, const path& base = current_path());
|
| 13 |
+
path proximate(const path& p, const path& base, error_code& ec);
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
*Returns:* For the first form:
|
| 17 |
+
|
| 18 |
+
``` cpp
|
| 19 |
+
weakly_canonical(p).lexically_proximate(weakly_canonical(base));
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
For the second form:
|
| 23 |
+
|
| 24 |
+
``` cpp
|
| 25 |
+
weakly_canonical(p, ec).lexically_proximate(weakly_canonical(base, ec));
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
or `path()` at the first error occurrence, if any.
|
| 29 |
+
|
| 30 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 31 |
+
|