include/llfio/v2.0/file_handle.hpp
/*! Create a file handle creating a randomly named file on a path.
The file is opened exclusively with `creation::only_if_not_exist` so it
will never collide with nor overwrite any existing file. Note also
that caching defaults to temporary which hints to the OS to only
flush changes to physical storage as lately as possible.

\errors Any of the values POSIX open() or CreateFile() can return.
*/
Create a file handle creating a randomly named file on a path.
The file is opened exclusively with `creation::only_if_not_exist` so it
will never collide with nor overwrite any existing file. Note also
that caching defaults to temporary which hints to the OS to only
flush changes to physical storage as lately as possible.

\errors Any of the values POSIX open() or CreateFile() can return.
Create a file handle creating a randomly named file on a path . The file is opened exclusively with ` creation :: only_if_not_exist ` so it will never collide with nor overwrite any existing file . Note also that caching defaults to temporary which hints to the OS to only flush changes to physical storage as lately as possible . \ errors Any of the values POSIX open () or CreateFile () can return .
inline result<file_handle> uniquely_named_file(const path_handle &dirpath, file_handle::mode _mode = file_handle::mode::write,
                                               file_handle::caching _caching = file_handle::caching::temporary,
                                               file_handle::flag flags = file_handle::flag::none) noexcept
{
  return file_handle::uniquely_named_file(std::forward<decltype(dirpath)>(dirpath), std::forward<decltype(_mode)>(_mode),
                                          std::forward<decltype(_caching)>(_caching), std::forward<decltype(flags)>(flags));
}
inline result < file_handle > uniquely_named_file ( const path_handle & dirpath , file_handle :: mode _mode = file_handle :: mode :: write , file_handle :: caching _caching = file_handle :: caching :: temporary , file_handle :: flag flags = file_handle :: flag :: none ) noexcept { return file_handle :: uniquely_named_file ( std :: forward < decltype ( dirpath ) > ( dirpath ) , std :: forward < decltype ( _mode ) > ( _mode ) , std :: forward < decltype ( _caching ) > ( _caching ) , std :: forward < decltype ( flags ) > ( flags ) ) ; }
Create a file handle creating a randomly named file on a path.
Create a file handle creating a randomly named file on a path .