Hash Function 与自定义 Key | STL

本章覆盖:`std::hash`;custom hasher;`operator==`;hash consistency;combine fields;immutable identity;string / enum / pair-like key;specialization `std::hash` 的合法边界;external hasher type;quality / distribution;unordered container 性能依赖 hash quality。

本章知识点

  • std::hash
  • custom hasher
  • operator==
  • hash consistency
  • combine fields
  • immutable identity
  • string / enum / pair-like key
  • specialization std::hash 的合法边界
  • external hasher type
  • quality / distribution
  • unordered container 性能依赖 hash quality