tmp/tmpjjev5can/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Class `file_status` <a id="fs.class.file_status">[[fs.class.file_status]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std::filesystem {
|
| 5 |
+
class file_status {
|
| 6 |
+
public:
|
| 7 |
+
// [fs.file_status.cons], constructors and destructor
|
| 8 |
+
file_status() noexcept : file_status(file_type::none) {}
|
| 9 |
+
explicit file_status(file_type ft,
|
| 10 |
+
perms prms = perms::unknown) noexcept;
|
| 11 |
+
file_status(const file_status&) noexcept = default;
|
| 12 |
+
file_status(file_status&&) noexcept = default;
|
| 13 |
+
~file_status();
|
| 14 |
+
|
| 15 |
+
// assignments:
|
| 16 |
+
file_status& operator=(const file_status&) noexcept = default;
|
| 17 |
+
file_status& operator=(file_status&&) noexcept = default;
|
| 18 |
+
|
| 19 |
+
// [fs.file_status.mods], modifiers
|
| 20 |
+
void type(file_type ft) noexcept;
|
| 21 |
+
void permissions(perms prms) noexcept;
|
| 22 |
+
|
| 23 |
+
// [fs.file_status.obs], observers
|
| 24 |
+
file_type type() const noexcept;
|
| 25 |
+
perms permissions() const noexcept;
|
| 26 |
+
};
|
| 27 |
+
}
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
#### `file_status` constructors <a id="fs.file_status.cons">[[fs.file_status.cons]]</a>
|
| 31 |
+
|
| 32 |
+
``` cpp
|
| 33 |
+
explicit file_status(file_type ft, perms prms = perms::unknown) noexcept;
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
*Postconditions:* `type() == ft` and `permissions() == prms`.
|
| 37 |
+
|
| 38 |
+
#### `file_status` observers <a id="fs.file_status.obs">[[fs.file_status.obs]]</a>
|
| 39 |
+
|
| 40 |
+
``` cpp
|
| 41 |
+
file_type type() const noexcept;
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
*Returns:* The value of `type()` specified by the postconditions of the
|
| 45 |
+
most recent call to a constructor, `operator=`, or `type(file_type)`
|
| 46 |
+
function.
|
| 47 |
+
|
| 48 |
+
``` cpp
|
| 49 |
+
perms permissions() const noexcept;
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
*Returns:* The value of `permissions()` specified by the postconditions
|
| 53 |
+
of the most recent call to a constructor, `operator=`, or
|
| 54 |
+
`permissions(perms)` function.
|
| 55 |
+
|
| 56 |
+
#### `file_status` modifiers <a id="fs.file_status.mods">[[fs.file_status.mods]]</a>
|
| 57 |
+
|
| 58 |
+
``` cpp
|
| 59 |
+
void type(file_type ft) noexcept;
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
*Postconditions:* `type() == ft`.
|
| 63 |
+
|
| 64 |
+
``` cpp
|
| 65 |
+
void permissions(perms prms) noexcept;
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
*Postconditions:* `permissions() == prms`.
|
| 69 |
+
|