tmp/tmpygbz6ev5/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
| 1 |
#### Copy file <a id="fs.op.copy.file">[[fs.op.copy.file]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
bool copy_file(const path& from, const path& to);
|
| 5 |
-
bool copy_file(const path& from, const path& to, error_code& ec);
|
| 6 |
```
|
| 7 |
|
| 8 |
*Returns:* `copy_file(from, to, copy_options::none)` or
|
| 9 |
`copy_file(from, to, copy_options::none, ec)`, respectively.
|
| 10 |
|
| 11 |
*Throws:* As specified in [[fs.err.report]].
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
-
bool copy_file(const path& from, const path& to, copy_options options);
|
| 15 |
-
bool copy_file(const path& from, const path& to, copy_options options,
|
| 16 |
error_code& ec);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Preconditions:* At most one element from each option
|
| 20 |
group [[fs.enum.copy.opts]] is set in `options`.
|
|
|
|
| 1 |
#### Copy file <a id="fs.op.copy.file">[[fs.op.copy.file]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
bool filesystem::copy_file(const path& from, const path& to);
|
| 5 |
+
bool filesystem::copy_file(const path& from, const path& to, error_code& ec);
|
| 6 |
```
|
| 7 |
|
| 8 |
*Returns:* `copy_file(from, to, copy_options::none)` or
|
| 9 |
`copy_file(from, to, copy_options::none, ec)`, respectively.
|
| 10 |
|
| 11 |
*Throws:* As specified in [[fs.err.report]].
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
+
bool filesystem::copy_file(const path& from, const path& to, copy_options options);
|
| 15 |
+
bool filesystem::copy_file(const path& from, const path& to, copy_options options,
|
| 16 |
error_code& ec);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Preconditions:* At most one element from each option
|
| 20 |
group [[fs.enum.copy.opts]] is set in `options`.
|