PrevUpHomeNext

Example of a root_ptr type

In order to use the root_ptr library, we first need an include:

#include <boost/smart_ptr/root_ptr.hpp>

Output shows handling cyclism

R-value:
9

and the order of destruction:

Slicing:
9

The full code is at root_ptr_example1.cpp.


PrevUpHomeNext