Freigeben über


CTypedPtrArray::InsertAt

This member function calls BASE_CLASS**::InsertAt**.

void InsertAt( 
   INT_PTR nIndex, 
   TYPE newElement, 
   INT_PTR nCount = 1  
); 
void InsertAt( 
   INT_PTR nStartIndex, 
   CTypedPtrArray< BASE_CLASS, TYPE >* pNewArray  
);

Parameters

  • nIndex
    An integer index that may be greater than the value returned by CObArray::GetUpperBound.

  • TYPE
    Type of the elements stored in the base-class array.

  • newElement
    The object pointer to be placed in this array. A newElement of value NULL is allowed.

  • nCount
    The number of times this element should be inserted (defaults to 1).

  • nStartIndex
    An integer index that may be greater than the value returned by CObArray::GetUpperBound.

  • BASE_CLASS
    Base class of the typed pointer array class; must be an array class (CObArray or CPtrArray).

  • pNewArray
    Another array that contains elements to be added to this array.

Remarks

For more detailed remarks, see CObArray::InsertAt.

Requirements

Header: afxtempl.h

See Also

Reference

CTypedPtrArray Class

Hierarchy Chart