status Function

Retrieves the status of the specified file.

template<class Path>
inline file_status status(
   const Path& Pval
);
template<class Path>
inline file_status status(
   const Path& Pval,
   error_code& Code
);

Pval

A Path object. Path can be either a path or a type that's derived from path.

Code

An error_code object.

The status of the file that's specified by Pval.

The second function assigns to Code any error code that's associated with the operation.

Header: filesystem

Namespace: std::tr2::sys

Show: