W3cubDocs

/C++

std::filesystem::directory_entry::directory_entry

directory_entry() = default;
(1) (since C++17)
directory_entry( const directory_entry& ) = default;
(2) (since C++17)
directory_entry( directory_entry&& ) = default;
(3) (since C++17)
explicit directory_entry( const std::filesystem::path& p );
(4) (since C++17)

Constructs a new directory_entry object.

1) Default constructor.
2) Defaulted copy constructor.
3) Defaulted move constructor.
4) Initializes the directory entry with path p.

Parameters

Exceptions

1,3)
noexcept specification:
noexcept

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/directory_entry/directory_entry