更新时间:2021-10-17 03:48:44
没有C ++标准库的标准实现,但你应该能够看看你的编译器附带的实现,看看它是如何工作的自己。
There's no standard implementation of the C++ Standard Library, but you should be able to take a look at the implementation shipped with your compiler and see how it works yourself.
一般来说,大多数STL函数不比它们的C对应的速度更快。它们通常更安全,更一般化,并设计为适应比狭义目的C等同物更广泛的情况。
In general, most STL functions are not faster than their C counterparts, though. They're usually safer, more generalized and designed to accommodate a much broader range of circumstances than the narrow-purpose C equivalents.