关键是在std::mapO(1)上查找?我以为直到我想到它为止.它基于树实现,因此查找时间应为O(log N),对吗?
std::map
而且,是否有可能让O(1)查找字符串键std::unordered_map?
std::unordered_map
c++ std data-structures c++11
c++ ×1
c++11 ×1
data-structures ×1
std ×1