std::less、greater、equal_to 与透明比较器 | STL

本章覆盖:`std::less`;`std::greater`;`std::equal_to`;`std::less<>`;transparent comparator;heterogeneous lookup;string vs string_view lookup;map/set;avoid temporary key construction;comparator state;透明比较是性能与接口设计高级点。

本章知识点

  • std::less
  • std::greater
  • std::equal_to
  • std::less<>
  • transparent comparator
  • heterogeneous lookup
  • string vs string_view lookup
  • map/set
  • avoid temporary key construction
  • comparator state
  • 透明比较是性能与接口设计高级点