1#ifndef BEAST_UTILITY_TEMP_DIR_H_INCLUDED 
    2#define BEAST_UTILITY_TEMP_DIR_H_INCLUDED 
    4#include <boost/filesystem.hpp> 
   29        auto const dir = boost::filesystem::temp_directory_path();
 
   32            path_ = dir / boost::filesystem::unique_path();
 
   33        } 
while (boost::filesystem::exists(
path_));
 
   34        boost::filesystem::create_directory(
path_);
 
 
   41        boost::system::error_code ec;
 
   42        boost::filesystem::remove_all(
path_, ec);
 
 
 
RAII temporary directory.
 
std::string path() const
Get the native path for the temporary directory.
 
boost::filesystem::path path_
 
temp_dir()
Construct a temporary directory.
 
~temp_dir()
Destroy a temporary directory.
 
std::string file(std::string const &name) const
Get the native path for the a file.