【发布时间】:2009-08-14 18:01:37
【问题描述】:
C++ hash_map 具有以下模板参数:
template<typename Key, typename T, typename HashCompare, typename Allocator>
如何在不指定 HashCompare 的情况下指定分配器?
这不会编译:(
hash_map<EntityId, Entity*, , tbb::scalable_allocator>
【问题讨论】:
-
C++ 没有定义
hash_map类型,更喜欢使用 C++ TR1unordered_map。