cpp/filesystem/equivalent

Checks whether the paths and  resolve to the same file system entity.

If either or  does not exist, an error is reported.

The non-throwing overload returns on errors.

Return value
if the and  refer to the same file or directory and their file status is the same. otherwise.