std::hash<std::filesystem::path>
来自cppreference.com
< cpp | filesystem | path
文件系统库
类 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
函数 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
文件类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::filesystem::path
常量 | |||||||||||||||||||||
成员函数 | |||||||||||||||||||||
|
|||||||||||||||||||||
路径分解 | |||||||||||||||||||||
非成员函数 | |||||||||||||||||||||
|
|||||||||||||||||||||
辅助类 | |||||||||||||||||||||
hash
|
在标头
<filesystem>
定义
|
||
template<>
struct hash<std::filesystem::path>; |
(C++17 起) | |
std::hash 对 std::filesystem::path 的模板特化允许用户获得 std::filesystem::path 的散列值。
此特化的 operator() 为 noexcept 。对每个
std::filesystem::path
值 p
, std::hash<std::filesystem::path>{}(p) 等于 std::filesystem::hash_value(p) 。
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
散列函数对象 (类模板) |
计算路径对象的哈希值 (函数) |