Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The AutoPtr Class Template<br />
> <strong>Poco</strong>::AutoPtr implements a reference counting "smart" pointer.<br />
> <strong>Poco</strong>::AutoPtr can be instantiated with any class that supports<br />
reference counting.<br />
> A class supporting reference counting must<br />
> maintain a reference count (initialized to 1 at creation)<br />
> implement a method void duplicate() that increments the<br />
reference count<br />
> implement a method void release() that decrements the<br />
reference count and, when it reaches zero, deletes the object