[fs.op.is.symlink] (original) (raw)

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.13 Filesystem operation functions [fs.op.funcs]

bool filesystem::is_symlink(file_status s) noexcept;

Returns: s.type() == file_type​::​symlink.

bool filesystem::is_symlink(const path& p);bool filesystem::is_symlink(const path& p, error_code& ec) noexcept;

Returns: is_symlink(symlink_status(p)) or is_symlink(symlink_status(p, ec)), respectively.

The signature with argument ec returns false if an error occurs.