You also have the function equivalent()specified in 15.13, which checks if two paths to the same file are allowed.
bool equivalent(const path& p1, const path& p2)
- Returns:
trueif s1 == s2and p1and p2allowed to the same file system object, the else false. A signature with an argument ecreturns falseif an error occurs.
Functioncompare()will use iterators and path::operator==to compare elements. In 8.6.13 you wrote:
bool operator==(const path& lhs, const path& rhs) noexcept;
Equivalence is determined by the equivalent () non-member function, which determines whether two paths allow the same file system object. So the equivalent ("foo", "bar") will be true when both paths are the same file
, , "", , " " " " " ",
, equivalent() , compare() , " " .