共用方式為


remove 函式

刪除具有指定路徑的檔案。

template<class Path>
inline bool remove(
   const Path& Pval
);

參數

  • Pval
    Path 物件。 Path 可以是 basic_path 或衍生自 basic_path的型別。

傳回值

true ,如果刪除檔案;則為,否則為 false。

需求

標題: 檔案系統

命名空間: std::tr2::sys

請參閱

參考

<filesystem>

其他資源

標頭檔