remove Function
Removes an empty directory that has a specified path.
bool remove (
const path& Pval
);
Parameters
- Pval
A path object
Return Value
true if the directory is removed; otherwise, false.
Remarks
If the directory is not empty, then an exception is thrown or the error code is set, depending on which overload you use. Use remove_all to remove a directory or directory tree along with the contents.
Requirements
Header: filesystem
Namespace: std::tr2::sys