: Path equality and path equivalence have different semantics
. Equality is determined by the
path non-member
operator==,
which considers the two paths' lexical representations only
. [
โExample: path("foo") == "bar" is never
true. โ
โend example โ]
Equivalence is determined by the
equivalent() non-member function, which
determines if two paths resolve (
[fs.class.path]) to the same file system entity
. [
โExample: equivalent("foo", "bar") will be
true when both paths resolve to the same file
. โ
โend example โ]
Programmers wishing to determine if two paths are โthe sameโ must decide if
โthe sameโ means โthe same representationโ or โresolve to the same actual
fileโ, and choose the appropriate function accordingly
. โ
โend note