tmp/tmp_uheg8ar/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,17 @@
|
|
| 1 |
#### Canonical <a id="fs.op.canonical">[[fs.op.canonical]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
path canonical(const path& p
|
| 5 |
path canonical(const path& p, error_code& ec);
|
| 6 |
-
path canonical(const path& p, const path& base, error_code& ec);
|
| 7 |
```
|
| 8 |
|
| 9 |
-
*Effects:* Converts `p`
|
| 10 |
-
|
| 11 |
-
generic format.
|
| 12 |
|
| 13 |
*Returns:* A path that refers to the same file system object as
|
| 14 |
-
`absolute(p
|
| 15 |
-
is `current_path()`. Signatures with argument `ec` return `path()` if an
|
| 16 |
error occurs.
|
| 17 |
|
| 18 |
*Throws:* As specified in [[fs.err.report]].
|
| 19 |
|
| 20 |
*Remarks:* `!exists(p)` is an error.
|
|
|
|
| 1 |
#### Canonical <a id="fs.op.canonical">[[fs.op.canonical]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
path canonical(const path& p);
|
| 5 |
path canonical(const path& p, error_code& ec);
|
|
|
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Effects:* Converts `p` to an absolute path that has no symbolic link,
|
| 9 |
+
dot, or dot-dot elements in its pathname in the generic format.
|
|
|
|
| 10 |
|
| 11 |
*Returns:* A path that refers to the same file system object as
|
| 12 |
+
`absolute(p)`. The signature with argument `ec` returns `path()` if an
|
|
|
|
| 13 |
error occurs.
|
| 14 |
|
| 15 |
*Throws:* As specified in [[fs.err.report]].
|
| 16 |
|
| 17 |
*Remarks:* `!exists(p)` is an error.
|