[英]Why does the == operator of std::unordered_multiset<T> returns wrong result when T is a pointer type?
這是一個錯誤,還是我做錯了什么? 我已經嘗試為指針類型提供散列和相等仿函數,但它似乎不起作用。 我什至嘗試創建自己的微型模板容器來測試仿函數。 哈希仿函數: 平等: 主要的: 我嘗試使用 Visual Studio 2022 將其編譯為 c++20 和 c++14。 這是 output: ...