### IAutoElemPointer

  Use objects of the IAutoElemPointer class as automatic element pointers for collections. Automatic element pointers route the operations on the pointers to the referenced elements, and delete the elements they reference when the pointers are destructed. No reference count is kept.

### IAutoElemPointer - Member Functions and Data by Group

### Constructors & Destructor

Construct and destruct auto element pointer objects

IAutoElemPointer
  Construct an auto element pointer object.

  Overload 1

      public:
      IAutoElemPointer(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:
      IAutoElemPointer()

  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 element being managed by this 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 Element *

      public:
      operator Element *() const

  Implicitly converts this pointer to a C++ pointer.

Supported Platforms

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

### IAutoElemPointer - Inherited Member Functions and Data

#### Inherited Public Functions

  IAutoPointer

  -     ~IAutoPointer()

  -     IAutoPointer(IAutoPointer < Element > const&)

  -     IAutoPointer(Element*, IExplicitInit)

  -     IAutoPointer()

  -     void operator =(IAutoPointer < Element > const&)

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None