30 Input/output library [input.output]

30.10 File systems [filesystems]

30.10.15 Filesystem operation functions [fs.op.funcs]

30.10.15.5 Copy symlink [fs.op.copy_symlink]

void copy_symlink(const path& existing_symlink, const path& new_symlink); void copy_symlink(const path& existing_symlink, const path& new_symlink, error_code& ec) noexcept;
Effects: Equivalent to function(read_­symlink(existing_­symlink), new_­symlink) or
function(read_­symlink(existing_­symlink, ec), new_­symlink, ec), respectively, where in each case function is create_­symlink or create_­directory_­symlink as appropriate.
Throws: As specified in [fs.err.report].