‘unordered_map’ is not a member of ‘std’ std::unordered_map<int, Client> client;
时间: 2023-10-13 12:14:26 浏览: 307
C++11 unordered_map与map(插入,遍历,Find)效率对比。
This error occurs when the compiler is unable to find the declaration of the `unordered_map` class in the `std` namespace.
To fix this error, you need to ensure that you have included the `<unordered_map>` header file in your code. You can add the following line at the top of your file:
```c++
#include <unordered_map>
```
This will include the necessary header file and allow you to use the `std::unordered_map` class in your code.
阅读全文