cpp/filesystem/absolute

Returns a path referencing the same file system location as, for which is. The non-throwing overload returns default-constructed path if an error occurs.

Return value
Returns an absolute (although not necessarily canonical) pathname referencing the same file as.