共用方式為


stem 函式

傳回指定之路徑文字的。

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

參數

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

傳回值

Path 物件包含指定的路徑文字的。

備註

路徑文字的是 分葉 的子字串等於但不包含最右邊的點。

需求

標題: filesystem

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

請參閱

參考

<filesystem>

basic_path::stem 方法

其他資源

C++ 標準程式庫標頭檔