【发布时间】:2016-12-14 20:32:06
【问题描述】:
不幸的是:
unordered_map<list<int>::iterator, int> foo;
不起作用,编译器说:error C2338: The C++ Standard does not provide a hash for this type.
似乎有一个 64 位整数的散列,所以它是否可以保存使用
unordered_map<long long, int> foo;
而是简单地将迭代器转换为long long?
【问题讨论】:
标签: c++11 casting hashmap iterator c++-standard-library