From Jason Turner

[fs.op.temp_dir_path]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzebnx2eg/{from.md → to.md} +21 -0
tmp/tmpzebnx2eg/{from.md → to.md} RENAMED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ *Returns:* An unspecifed directory path suitable for temporary files. An
9
+ error shall be reported if `!exists(p) || !is_directory(p)`, where `p`
10
+ is the path to be returned. The signature with argument `ec` returns
11
+ `path()` if an error occurs.
12
+
13
+ *Throws:* As specified in  [[fs.err.report]].
14
+
15
+ [*Example 1*: For POSIX-based operating systems, an implementation
16
+ might return the path supplied by the first environment variable found
17
+ in the list TMPDIR, TMP, TEMP, TEMPDIR, or if none of these are found,
18
+ `"/tmp"`. For Windows-based operating systems, an implementation might
19
+ return the path reported by the Windows `GetTempPath` API
20
+ function. — *end example*]
21
+