CSimpleArray::Add

CSimpleArray::Add

 

Adds a new element to the array.


      BOOL Add(
   const T& t 
);

t

The element to add to the array.

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

Show:
© 2016 Microsoft