29 Input/output library [input.output]

29.11 File systems [filesystems]

29.11.14 Filesystem operation functions [fs.op.funcs]

29.11.14.28 Read symlink [fs.op.read.symlink]

path read_symlink(const path& p); path read_symlink(const path& p, error_code& ec);
Returns: If p resolves to a symbolic link, a path object containing the contents of that symbolic link.
The signature with argument ec returns path() if an error occurs.
Throws: As specified in [fs.err.report].
[Note
:
It is an error if p does not resolve to a symbolic link.
— end note
]