性病的区别::设置和boost ::容器::设为 [英] Difference between std::set and boost::container::set
问题描述
的std ::设置和的boost ::容器::设为
推荐答案
提升容器和标箱之间的主要区别在于提升集装箱允许不完全类型。实现依赖于底层容器的组合更为复杂的数据结构时,这可以使一个巨大的差异。
The main difference between boost containers and standard containers is that boost containers allow for incomplete types. This can make a huge difference when implementing more complex data structures that rely on a combination of underlying containers.
有可能会提升容器和标准集装箱的具体实施之间的性能差异。但是,这可能会有两种结果。
There might be performance differences between boost containers and particular implementations of standard containers. But that could go either way.
修改:这里是集/图容器一些额外的注意事项(见的 REF ):
EDIT: Here are some additional notes for set/map containers (see ref):
[多]集/图容器大小进行了优化嵌入父指针红黑树节点的色位。
[多]集/图容器不使用递归函数栈这样可以避免的问题。
[multi]set/map containers are size optimized embedding the color bit of the red-black tree nodes in the parent pointer. [multi]set/map containers use no recursive functions so stack problems are avoided.
这篇关于性病的区别::设置和boost ::容器::设为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!