检索一个指定的文件名的文件扩展名。
template<class Path>
inline typename Path::string_type extension(
const Path& Pval
);
参数
- Pval
Path 对象。Path 可以是 basic_path 或从 basic_path派生类型。
返回值
在 Pval存储文件名的文件扩展名。
要求
**标头:**文件系统
**命名空间:**std::tr2::sys
检索一个指定的文件名的文件扩展名。
template<class Path>
inline typename Path::string_type extension(
const Path& Pval
);
在 Pval存储文件名的文件扩展名。
**标头:**文件系统
**命名空间:**std::tr2::sys