Defined in header
path current_path( std::error_code& ec );
void current_path( const std::filesystem::path& p );
Returns or changes the current path.
getcwd. (2) returns path() if error occurs.
|p||-||path to change the current working directory to|
|ec||-||out-parameter for error reporting in the non-throwing overloads|
 Return value
Any overload not marked
noexcept may throw std::bad_alloc if memory allocation fails.
The current working directory is the directory, associated with the process, that is used as the starting location in pathname resolution for relative paths.
The current path as returned by many operating systems is a dangerous global variable. It may be changed unexpectedly by third-party or system library functions, or by another thread.
Current path is "D:/local/ConsoleApplication1" Current path is "E:/Temp"
 See also
| returns a directory suitable for temporary files |