#include <AutoPtrVector.h>
Public Member Functions | |
| AutoPtrVector () | |
| Creates an empty vector. | |
| AutoPtrVector (const vector< PtrType > &v) | |
| Copy constructor from a vector class. | |
| AutoPtrVector (const AutoPtrVector< PtrType > &v) | |
| Copy constructor. | |
| AutoPtrVector (typename vector< PtrType * >::size_type n) | |
| Creates a vector with n elements. | |
| virtual | ~AutoPtrVector () |
| Destructor. | |
| AutoPtrVector< PtrType > & | operator= (const AutoPtrVector< PtrType > &v) |
| Assignement operator. | |
| void | pop_back () |
| Removed the last element. | |
| void | erase (typename vector< PtrType * >::const_iterator pos) |
| Erases the element at position pos. | |
| void | erase (typename vector< PtrType * >::const_iterator first, typename vector< PtrType * >::const_iterator last) |
| Erases the range [first, last). | |
| void | clear () |
| Erases all of the elements. | |
Reference counting will be upheld on all nodes in the vector.
1.4.5