copy_file(const path & src, const path & dest) -> void
Copy file using the most optimal system call. bad_call Uses copy_file_range(2) on newer kernels. Uses sendfile(2) when available. Otherwise, falls back to standard stream copying.