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++ 标准库头文件