From Jason Turner

[fs.op.is_regular_file]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbcw16se2/{from.md → to.md} +30 -0
tmp/tmpbcw16se2/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Is regular file <a id="fs.op.is_regular_file">[[fs.op.is_regular_file]]</a>
2
+
3
+ ``` cpp
4
+ bool is_regular_file(file_status s) noexcept;
5
+ ```
6
+
7
+ *Returns:* `s.type() == file_type::regular`.
8
+
9
+ ``` cpp
10
+ bool is_regular_file(const path& p);
11
+ ```
12
+
13
+ *Returns:* `is_regular_file(status(p))`.
14
+
15
+ *Throws:* `filesystem_error` if `status(p)` would throw
16
+ `filesystem_error.`
17
+
18
+ ``` cpp
19
+ bool is_regular_file(const path& p, error_code& ec) noexcept;
20
+ ```
21
+
22
+ *Effects:* Sets `ec` as if by `status(p, ec)`.
23
+
24
+ [*Note 1*: `file_type::none`, `file_type::not_found` and
25
+ `file_type::unknown` cases set `ec` to error values. To distinguish
26
+ between cases, call the `status` function directly. — *end note*]
27
+
28
+ *Returns:* `is_regular_file(status(p, ec))`. Returns `false` if an error
29
+ occurs.
30
+