我想知道为什么STL的地图是基于rb树的?我的意思是,基于散列的映射似乎在插入/删除甚至获取值方面更有效.有什么具体考虑吗?
c++ stl map
我正在读取stl_construct.h中的一些源代码.在大多数情况下,它在<>中有一些,我看到只有" template<> ..."的行.这是什么?
template<> ...
c++ templates
c++ ×2
map ×1
stl ×1
templates ×1