void create_hard_link(const path& to, const path& new_hard_link);
void create_hard_link(const path& to, const path& new_hard_link,
error_code& ec) noexcept;
Effects: Establishes the postcondition, as if by POSIX link().
exists(to) && exists(new_hard_link) && equivalent(to, new_hard_link)
The contents of the file or directory
to resolves to are unchanged.
[ Note: Some operating systems do not support hard links at all or support
them only for regular files. Some file systems (such as the FAT file system)
do not support hard links regardless of the operating system.
Some file systems limit the number of links per file. — end note ]