Share via


CSimpleArray::Remove

Removes a given element from the array.

BOOL Remove( 
   const T& t  
);

Parameters

  • t
    The element to remove from the array.

Return Value

Returns TRUE if the element is found and removed, FALSE otherwise.

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::RemoveAt