27 Input/output library [input.output]

27.11 File systems [filesystems]

27.11.11 Class directory_­entry [fs.class.directory_entry]

27.11.11.1 directory_­entry constructors [fs.dir.entry.cons]

explicit directory_entry(const filesystem::path& p); directory_entry(const filesystem::path& p, error_code& ec);
Effects: Constructs an object of type directory_­entry, then refresh() or refresh(ec), respectively.
Ensures: path() == p if no error occurs, otherwise path() == filesystem​::​path().
Throws: As specified in [fs.err.report].