http://www.cocos2d-x.org/wiki/Map%3CKV%3E
此链接只解释
Map<std::string, Sprite*>
类型。
如果我想使用这样的东西:
Map<std::string, int>
我应该坚持使用 std::map 吗?
如果我使用 std::map,是否需要做一些额外的内存管理?
最佳答案
should I just stick to
std::map
?
是的。
Will I have to do some extra memory management if I use
std::map
?
没有。
关于c++ - 如何在 Cocos2dx-v3 C++ 中将 Map<K, V> 与 string 和 int 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38560335/