From Jason Turner

[fs.op.canonical]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpdul83t8f/{from.md → to.md} +21 -0
tmp/tmpdul83t8f/{from.md → to.md} RENAMED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Canonical <a id="fs.op.canonical">[[fs.op.canonical]]</a>
2
+
3
+ ``` cpp
4
+ path canonical(const path& p, const path& base = current_path());
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`, which must exist, to an absolute path that has
10
+ no symbolic link, *dot*, or *dot-dot* elements in its pathname in the
11
+ generic format.
12
+
13
+ *Returns:* A path that refers to the same file system object as
14
+ `absolute(p, base)`. For the overload without a `base` argument, `base`
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.
21
+