Intrusive and non-intrusive containers
Boost.Intrusive is a library presenting some intrusive containers to the world of C++. Intrusive containers are special containers that offer better performance and exception safety guarantees than non-intrusive containers (like STL containers).
The performance benefits of intrusive containers makes them ideal as a building block to efficiently construct complex containers like multi-index containers or to design high performance code like memory allocation algorithms.
While intrusive containers were and are widely used in C, they became more and more forgotten in C++ due to the presence of the standard containers which don’t support intrusive techniques.Boost.Intrusive wants to push intrusive containers usage encapsulating the implementation in STL-like interfaces. Hence anyone familiar with standard containers can easily use Boost.Intrusive.
There is no need to compile anything to use Boost.Intrusive, since it’s a header only library. Just include your Boost header directory in your compiler include path.
Boost.Intrusive 是一个 C++ 库,提供侵入式容器,相较于标准容器,它提供了更好的性能和异常安全性。这些容器非常适合构建复杂的数据结构如多索引容器,或用于内存分配等高性能代码的设计。尽管 C++ 标准容器不支持侵入式技术导致这类容器逐渐被遗忘,但 Boost.Intrusive 通过提供类似于 STL 的接口来简化其使用。
5391

被折叠的 条评论
为什么被折叠?



