std::experimental::filesystem::copy_file - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::copy_file

From cppreference.com
< cpp‎ | experimental‎ | fs

Defined in header `<experimental/filesystem>` |  |
bool copy_file( const path& from, const path& to ); | (1) | (filesystem TS)
bool copy_file( const path& from, const path& to, error_code& ec ); | (2) | (filesystem TS)
bool copy_file( const path& from, const path& to, copy_options options ); | (3) | (filesystem TS)
bool copy_file( const path& from, const path& to, copy_options options, error_code& ec ); | (4) | (filesystem TS)

Copies file contents and their attributes.

1) Equivalent to copy_file(from, to, copy_options::none).
2) Equivalent to copy_file(from, to, copy_options::none, ec).

| This section is incomplete

The functions involve at most one direct or indirect call to status(to).

### [edit] Parameters

| This section is incomplete

ec | - | error code to store error status to

### [edit] Return value

| This section is incomplete

### [edit] Exceptions

| This section is incomplete

2,4)
`noexcept` specification:
noexcept

### [edit] See also

| This section is incomplete

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/copy_file&oldid=68485"
Categories:

- Todo without reason
- unconditionally noexcept