tmp/tmp19n_w0b_/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### General <a id="fs.class.file.status.general">[[fs.class.file.status.general]]</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 |
+
friend bool operator==(const file_status& lhs, const file_status& rhs) noexcept
|
| 28 |
+
{ return lhs.type() == rhs.type() && lhs.permissions() == rhs.permissions(); }
|
| 29 |
+
};
|
| 30 |
+
}
|
| 31 |
+
```
|
| 32 |
+
|