From Jason Turner

[fs.op.equivalent]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpt28jzcw7/{from.md → to.md} +26 -0
tmp/tmpt28jzcw7/{from.md → to.md} RENAMED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Equivalent <a id="fs.op.equivalent">[[fs.op.equivalent]]</a>
2
+
3
+ ``` cpp
4
+ bool equivalent(const path& p1, const path& p2);
5
+ bool equivalent(const path& p1, const path& p2, error_code& ec) noexcept;
6
+ ```
7
+
8
+ Let `s1` and `s2` be `file_status`s, determined as if by `status(p1)`
9
+ and `status(p2)`, respectively.
10
+
11
+ *Effects:* Determines `s1` and `s2`. If
12
+ `(!exists(s1) && !exists(s2)) || (is_other(s1) && is_other(s2))` an
13
+ error is reported ([[fs.err.report]]).
14
+
15
+ *Returns:* `true`, if `s1 == s2` and `p1` and `p2` resolve to the same
16
+ file system entity, else `false`. The signature with argument `ec`
17
+ returns `false` if an error occurs.
18
+
19
+ Two paths are considered to resolve to the same file system entity if
20
+ two candidate entities reside on the same device at the same location.
21
+ This is determined as if by the values of the POSIX `stat` structure,
22
+ obtained as if by `stat()` for the two paths, having equal `st_dev`
23
+ values and equal `st_ino` values.
24
+
25
+ *Throws:* As specified in  [[fs.err.report]].
26
+