39#ifndef BLOCXX_AUTOPTR_HPP_INCLUDE_GUARD_
40#define BLOCXX_AUTOPTR_HPP_INCLUDE_GUARD_
41#include "blocxx/BLOCXX_config.h"
145 typedef char type_must_be_complete[
sizeof(X)];
280 typedef char type_must_be_complete[
sizeof(X)];
void reset(X *p=0)
Delete the object the underlying pointer points to and take ownership of a new pointer.
AutoPtr & operator=(const AutoPtr &a)
X * release()
Release ownership of the underlying pointer.
~AutoPtr()
Destroy this AutoPtr object and the object it points to.
AutoPtr(const AutoPtr &a)
AutoPtr(X *p=0)
Construct a new AutoPtr object that assumes ownership of a given pointer.
~AutoPtrVec()
Destroy this AutoPtrVec object and the array it points to.
void reset(X *p=0)
Delete the array the underlying pointer points to and take ownership of a new array pointer.
X & operator[](unsigned n)
AutoPtrVec & operator=(const AutoPtrVec &a)
X * release()
Release ownership of the underlying array.
AutoPtrVec(const AutoPtrVec &a)