Share via


replace_extension 函式

取代指定之檔案名稱的副檔名。

template<class Path>
inline Path replace_extension(
   const Path& Pval,
   const typename Path::string_type& Newext
);

參數

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

  • Newext
    新的擴充功能。

傳回值

包含新的擴充 Pval 的複本。

需求

標題: 檔案系統

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

請參閱

參考

<filesystem>

其他資源

標頭檔