Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets or retrieves the current working directory.
Important
This API cannot be used in applications that execute in the Windows Runtime.
template<class Path>
inline Path current_path();
template<class Path>
inline void current_path(const Path& Pval);
Parameters
- Pval
A Path object. Path can be either a basic_path or a type that is derived from basic_path.
Remarks
The first function returns the current working directory.
The second function sets the current working directory to Pval.
Requirements
Header: filesystem
Namespace: std::tr2::sys