### IAutoPointer

  Use objects of the IAutoPointer class as automatic pointers for collections. Automatic pointers delete the elements they reference when the pointers are destructed. No reference count is kept.

### IAutoPointer - Member Functions and Data by Group

### Constructors & Destructor

Construct and destruct auto pointer objects.

~IAutoPointer

      public:
      ~IAutoPointer()

  Deletes the object referenced by the automatic pointer.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

IAutoPointer
  Construct an auto pointer object.

  Overload 1

      public:
      IAutoPointer(Element*, IExplicitInit)

  Constructs a pointer of the indicated type from a given C++ pointer.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 2

      public:
      IAutoPointer(IAutoPointer < Element > const&)

  Constructs a new pointer and initializes it with the given pointer. The given pointer is set to NULL.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 3

      public:
      IAutoPointer()

  Constructs a pointer of the indicated type and initializes it with NULL.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Operators

Use these operators to access the pointer managed by the auto pointer object.

operator *

      public:
      Element& operator *() const

  Returns a reference to the object to which the pointer refers.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator ->

      public:
      Element* operator ->() const

  Returns a C pointer to the object to which the pointer refers.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator =

      public:
      void operator =(IAutoPointer < Element > const&)

  Assigns the given pointer to this pointer. The given pointer is set to NULL and the previously referenced element is deleted.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

operator Element *

      public:
      operator Element *() const

  Implicitly converts this pointer to a C++ pointer.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IAutoPointer - Inherited Member Functions and Data

#### Inherited Public Functions

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None