cpp/experimental/fs/canonical

Converts path to a canonical absolute path, i.e. an absolute path that has no dot, dot-dot elements or symbolic links.

If is not an absolute path, the function behaves as if it is first made absolute by  or  for

The path must exist.

Return value
An absolute path that resolves to the same file as (or  for ).

Exceptions
This function is modeled after the POSIX realpath.