共用方式為


extension 函式

擷取所指定之檔案名稱的副檔名。

template<class Path>
inline typename Path::string_type extension(
   const Path& Pval
);

參數

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

傳回值

在 Pval儲存檔案名稱的副檔名。

需求

標題: 檔案系統

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

請參閱

參考

<filesystem>

basic_path::extension 方法

其他資源

標頭檔