Export (0) Print
Expand All

CSimpleArray::operator =

Assignment operator.

CSimpleArray< T, TEqual > 
& operator =( 
   const CSimpleArray< T, TEqual >& src  


The array to copy.

Returns a pointer to the updated CSimpleArray object.

Copies all elements from the CSimpleArray object referenced by src into the current array object, replacing all existing data.

// Create an array of chars and copy it to a second array
CSimpleArray<char> cMyArray1;
CSimpleArray<char> cMyArray2;
cMyArray2 = cMyArray1;
ATLASSERT(cMyArray2[0] == 'a');   

Header: atlsimpcoll.h

© 2014 Microsoft