extension 函数

检索一个指定的文件名的文件扩展名。

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

参数

  • Pval
    Path 对象。Path 可以是 basic_path 或从 basic_path派生类型。

返回值

在 Pval存储文件名的文件扩展名。

要求

**标头:**文件系统

**命名空间:**std::tr2::sys

请参见

参考

<filesystem>

basic_path::extension方法

其他资源

标头文件