CArray::GetSize

intGetSize()const;

Remarks

Returns the size of the array. Since indexes are zero-based, the size is 1 greater than the largest index.

Example

CArray<CPoint,CPoint> myArray;

// Add elements to the array.
for (int i=0;i < 10;i++)
      myArray.Add( CPoint(i, 2*i) );

// Modify all the points in the array.
for (i=0;i < myArray.GetSize();i++)
{
   CPoint& pt = myArray.ElementAt(i);
   pt.x = 0;
}

CArray OverviewClass MembersHierarchy Chart

See Also   CArray::GetUpperBound, CArray::SetSize