current_path 函式
設定或擷取目前的工作目錄。
重要
這個 API 不能用於 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。
需求
標題: 檔案系統
命名空間: std::tr2::sys