std::hash<std::text_encoding>

来自cppreference.com
< cpp‎ | text‎ | text encoding
在标头 <text_encoding> 定义
template<> struct hash<std::text_encoding>;
(C++26 起)

std::hash 针对 std::text_encoding 的模板特化允许用户获得类型 std::text_encoding 的编码 id 和名称的散列值。

此特化的 operator() 为 noexcept。

[编辑] 示例

[编辑] 参阅

(C++11)
散列函数对象
(类模板) [编辑]
std::basic_stacktrace 的散列支持
(类模板特化) [编辑]