tmp/tmp7ewukqww/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Temporary directory path <a id="fs.op.temp.dir.path">[[fs.op.temp.dir.path]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
path temp_directory_path();
|
| 5 |
+
path temp_directory_path(error_code& ec);
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
Let `p` be an unspecified directory path suitable for temporary files.
|
| 9 |
+
|
| 10 |
+
*Effects:* If `exists(p)` is `false` or `is_directory(p)` is `false`, an
|
| 11 |
+
error is reported [[fs.err.report]].
|
| 12 |
+
|
| 13 |
+
*Returns:* The path `p`. The signature with argument `ec` returns
|
| 14 |
+
`path()` if an error occurs.
|
| 15 |
+
|
| 16 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 17 |
+
|
| 18 |
+
[*Example 1*: For POSIX-based operating systems, an implementation
|
| 19 |
+
might return the path supplied by the first environment variable found
|
| 20 |
+
in the list TMPDIR, TMP, TEMP, TEMPDIR, or if none of these are found,
|
| 21 |
+
`"/tmp"`. For Windows-based operating systems, an implementation might
|
| 22 |
+
return the path reported by the Windows `GetTempPath` API
|
| 23 |
+
function. — *end example*]
|
| 24 |
+
|