tmp/tmp_5unrc3u/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### `directory_iterator` members <a id="fs.dir.itr.members">[[fs.dir.itr.members]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
directory_iterator() noexcept;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Constructs the end iterator.
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
explicit directory_iterator(const path& p);
|
| 11 |
+
directory_iterator(const path& p, directory_options options);
|
| 12 |
+
directory_iterator(const path& p, error_code& ec) noexcept;
|
| 13 |
+
directory_iterator(const path& p, directory_options options, error_code& ec) noexcept;
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
*Effects:* For the directory that `p` resolves to, constructs an
|
| 17 |
+
iterator for the first element in a sequence of `directory_entry`
|
| 18 |
+
elements representing the files in the directory, if any; otherwise the
|
| 19 |
+
end iterator. However, if
|
| 20 |
+
|
| 21 |
+
``` cpp
|
| 22 |
+
(options & directory_options::skip_permission_denied) != directory_options::none
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
and construction encounters an error indicating that permission to
|
| 26 |
+
access `p` is denied, constructs the end iterator and does not report an
|
| 27 |
+
error.
|
| 28 |
+
|
| 29 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 30 |
+
|
| 31 |
+
[*Note 1*: To iterate over the current directory, use
|
| 32 |
+
`directory_iterator(".")` rather than
|
| 33 |
+
`directory_iterator("")`. — *end note*]
|
| 34 |
+
|
| 35 |
+
``` cpp
|
| 36 |
+
directory_iterator(const directory_iterator& rhs);
|
| 37 |
+
directory_iterator(directory_iterator&& rhs) noexcept;
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
*Effects:* Constructs an object of class `directory_iterator`.
|
| 41 |
+
|
| 42 |
+
*Postconditions:* `*this` has the original value of `rhs`.
|
| 43 |
+
|
| 44 |
+
``` cpp
|
| 45 |
+
directory_iterator& operator=(const directory_iterator& rhs);
|
| 46 |
+
directory_iterator& operator=(directory_iterator&& rhs) noexcept;
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
*Effects:* If `*this` and `rhs` are the same object, the member has no
|
| 50 |
+
effect.
|
| 51 |
+
|
| 52 |
+
*Postconditions:* `*this` has the original value of `rhs`.
|
| 53 |
+
|
| 54 |
+
*Returns:* `*this`.
|
| 55 |
+
|
| 56 |
+
``` cpp
|
| 57 |
+
directory_iterator& operator++();
|
| 58 |
+
directory_iterator& increment(error_code& ec) noexcept;
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
*Effects:* As specified for the prefix increment operation of Input
|
| 62 |
+
iterators ([[input.iterators]]).
|
| 63 |
+
|
| 64 |
+
*Returns:* `*this`.
|
| 65 |
+
|
| 66 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 67 |
+
|