返回指定的路径的 主体。
template<class Path>
inline typename Path::string_type stem(
const Path& Pval
);
参数
- Pval
Path 对象。Path 可以是 basic_path 或从 basic_path派生类型。
返回值
包含指定的路径的 主体 的 Path 对象。
备注
路径的 主体 是 叶 的子字符串相等但不包含最右边的点。
要求
标头: 文件系统
命名空间: std::tr2::sys