boost::intrusive_ptr

Searching…

www.boost.org

intrusive_ptr - Boost C++ Libraries

The intrusive_ptr class template stores a pointer to an object with an embedded reference count. Every new intrusive_ptr instance increments the reference count by using an unqualified call to the function intrusive_p...

zhuanlan.zhihu.com

boost::intrusive_ptr的用法 - 知乎

intrusive_ptr是“侵入式”的,所以它所指向的对象,必须继承包含引用计数功能的基类;而shared_ptr不是“ 侵入式 ”的,可指向任何类型的对象。 intrusive_ptr用在创建的对象需要传递的时候(例如总线传递等) boost::intrusive_ptr的使用

github.com

GitHub - boostorg/intrusive: Boost.org intrusive module

Boost.Intrusive, part of collection of the Boost C++ Libraries, is a library presenting intrusive containers to the world of C++. Intrusive containers are special containers that offer better performance and exception...

theboostcpplibraries.com

Chapter 1. Boost.SmartPointers - Special Smart Pointers

In general, boost::intrusive_ptr works the same as boost::shared_ptr. However, while boost::shared_ptr keeps track of the number of shared pointers referencing a particular object, the developer has to do this when us...

www.boost.org

Class template intrusive_ptr - Boost C++ Libraries

The intrusive_ptr class template stores a pointer to an object with an embedded reference count. intrusive_ptr is parameterized on T (the type of the object pointed to) and VoidPointer (a void pointer type that define...