tmp/tmpyx4tsncl/{from.md → to.md}
RENAMED
|
@@ -3,24 +3,20 @@
|
|
| 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 |
-
|
| 9 |
-
|
| 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 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
*Throws:* As specified in [[fs.err.report]].
|
| 26 |
|
|
|
|
| 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 |
+
*Returns:* `true`, if `p1` and `p2` resolve to the same file system
|
| 9 |
+
entity, otherwise `false`. The signature with argument `ec` returns
|
| 10 |
+
`false` if an error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Two paths are considered to resolve to the same file system entity if
|
| 13 |
two candidate entities reside on the same device at the same location.
|
| 14 |
+
|
| 15 |
+
[*Note 1*: On POSIX platforms, this is determined as if by the values
|
| 16 |
+
of the POSIX `stat` class, obtained as if by `stat()` for the two paths,
|
| 17 |
+
having equal `st_dev` values and equal `st_ino` values. — *end note*]
|
| 18 |
+
|
| 19 |
+
*Remarks:* `!exists(p1) || !exists(p2)` is an error.
|
| 20 |
|
| 21 |
*Throws:* As specified in [[fs.err.report]].
|
| 22 |
|