【发布时间】:2020-12-11 06:17:46
【问题描述】:
来自cppreference,据说std::map::emplace_hint的复杂度是:
Complexity
Logarithmic in the size of the container in general, but amortized constant if the new element is inserted just before hint.
如果我们提供一个好的提示,为什么它是恒定的?
【问题讨论】:
-
您要制作文档吗?