Struct temporary_directory

Struct Documentation

struct helpers::temporary_directory

A temporary directory with RAII removal

Public Functions

temporary_directory()

Create a temporary directory with a random dirname. The directory is created at a location suitable for temporary files.

~temporary_directory()

Remove a temporary directory and all its contents.

fs::path dirname() const

Return the path of the created temporary directory.

Returns

The path of the created directory.

Public Members

fs::path dirname_