Freigeben über


CSimpleArray::Add

Adds a new element to the array.

BOOL Add(
   const T& t 
);

Parameters

  • t
    The element to add to the array.

Return Value

Returns TRUE if the element is successfully added to the array, FALSE otherwise.

Example

// Create an array of integers and add some elements
CSimpleArray<int> iMyArray;
for (int i = 0; i < 10; i++)
   iMyArray.Add(i);  

Requirements

Header: atlsimpcoll.h

See Also

Concepts

CSimpleArray Class

CSimpleArray Members

CSimpleArray::SetAtIndex