14 if (prefix.find(
'/')==prefix.npos) {
15 const char* tmpdir=std::getenv(
"TMPDIR");
16 if (tmpdir!=
nullptr && tmpdir[0]!=0) {
const std::string & name() const
Returns temporary file name.
Resource manager: manages a file with unique name.
std::string temporary_filename(const std::string &prefix)
Generate a reasonably unique file name with a given prefix.
Remove the file after constructing the object only.