Partager via


CSimpleArray::RemoveAt

Removes the specified element from the array.

BOOL RemoveAt( 
   int nIndex  
);

Parameters

  • nIndex
    Index pointing to the element to remove.

Return Value

Returns TRUE if the element was removed, FALSE if the index was invalid.

Remarks

When an element is removed, the remaining elements in the array are renumbered to fill the empty space.

Requirements

Header: atlsimpcoll.h

See Also

Reference

CSimpleArray Class

CSimpleArray::RemoveAll

CSimpleArray::Remove