共用方式為


is_other 函式

指示指定的 file_status 或檔名是否代表不是一般檔案、目錄或一符號連結的現有檔案。

inline bool is_other(
   file_status Stat
);
template<class Path>
inline bool is_other(
   const Path& Pval
);

參數

  • Stat
    file_status 物件。

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

傳回值

第一個函式傳回 exists() && !is_regular_file(Stat) && !is_directory(Stat) && !is_symlink(Stat)。

第二個函式傳回 is_other(status(Pval))。

需求

標題: 檔案系統

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

請參閱

參考

<filesystem>

file_type 列舉型別

status 函式

exists 函式

is_regular_file 函式

is_directory 函式

is_symlink 函式

其他資源

標頭檔