boost::root_ptr
// In header: <boost/smart_ptr/root_ptr.hpp> template<typename T> class root_ptr : public boost::node_proxy, public boost::node_ptr< T > { public: // construct/copy/destruct root_ptr(); root_ptr(root_ptr const &); template<typename V, typename PoolAllocator> root_ptr(node< V, PoolAllocator > *); template<typename V> root_ptr& operator=(node_ptr< V > const &); root_ptr& operator=(node_ptr< T > const &); template<typename V> root_ptr& operator=(root_ptr< V > const &); root_ptr& operator=(root_ptr< T > const &); template<typename V, typename PoolAllocator> root_ptr& operator=(node< V, PoolAllocator > *); // public member functions node_proxy & proxy(); node_proxy const & proxy() const; };
Deterministic region based memory manager.
Complete memory management utility on top of standard reference counting.
Note | |
---|---|
Needs to be instanciated for the use of further |
root_ptr
public
construct/copy/destructroot_ptr();
Initialization of a pointer.
root_ptr(root_ptr const & p);
Initialization of a pointer.
Parameters: |
|
template<typename V, typename PoolAllocator> root_ptr(node< V, PoolAllocator > * p);
Initialization of a pointer.
Parameters: |
|
template<typename V> root_ptr& operator=(node_ptr< V > const & p);
Assignment.
Parameters: |
|
root_ptr& operator=(node_ptr< T > const & p);
Assignment.
Parameters: |
|
template<typename V> root_ptr& operator=(root_ptr< V > const & p);
Assignment.
Parameters: |
|
root_ptr& operator=(root_ptr< T > const & p);
Assignment.
Parameters: |
|
template<typename V, typename PoolAllocator> root_ptr& operator=(node< V, PoolAllocator > * p);
Assignment.
Parameters: |
|
root_ptr
public member functionsnode_proxy & proxy();
Cast operation helper.
Returns: |
|
node_proxy const & proxy() const;
Cast operation helper.
Returns: |
|