current_path 函式
設定或擷取目前的工作目錄。
重要
這個應用程式開發介面不能用於 Windows 執行階段執行的應用程式。
template<class Path>
inline Path current_path();
template<class Path>
inline void current_path(const Path& Pval);
參數
- Pval
Path 物件。 Path 可以是 basic_path 或衍生自 basic_path 的型別。
備註
第一個函式會傳回目前的工作目錄。
第二個函式會對 Pval的目前工作目錄。
需求
標題: filesystem
命名空間: std::tr2::sys