From Jason Turner

[fs.op.is_empty]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpu6vubc9b/{from.md → to.md} +0 -28
tmp/tmpu6vubc9b/{from.md → to.md} RENAMED
@@ -1,28 +0,0 @@
1
- #### Is empty <a id="fs.op.is_empty">[[fs.op.is_empty]]</a>
2
-
3
- ``` cpp
4
- bool is_empty(const path& p);
5
- bool is_empty(const path& p, error_code& ec) noexcept;
6
- ```
7
-
8
- *Effects:*
9
-
10
- - Determine `file_status s`, as if by `status(p)` or `status(p, ec)`,
11
- respectively.
12
- - For the signature with argument `ec`, return `false` if an error
13
- occurred.
14
- - Otherwise, if `is_directory(s)`:
15
- - Create a variable `itr`, as if by `directory_iterator itr(p)` or
16
- `directory_iterator itr(p, ec)`, respectively.
17
- - For the signature with argument `ec`, return `false` if an error
18
- occurred.
19
- - Otherwise, return `itr == directory_iterator()`.
20
- - Otherwise:
21
- - Determine `uintmax_t sz`, as if by `file_size(p)` or
22
- `file_size(p, ec)`, respectively.
23
- - For the signature with argument `ec`, return `false` if an error
24
- occurred.
25
- - Otherwise, return `sz == 0`.
26
-
27
- *Throws:* As specified in  [[fs.err.report]].
28
-