Share via


SerializeElements

template<classTYPE**>**
voidAFXAPISerializeElements(CArchive&ar,TYPE*pElements,intnCount**);**

Parameters

TYPE

Template parameter specifying the type of the elements.

ar

An archive object to archive to or from.

pElements

Pointer to the elements being archived.

nCount

Number of elements being archived

Remarks

CArray, CList, and CMap call this function to serialize elements. The default implementation does a bit-wise read or write.

For information on implementing this and other helper functions, see the article in Visual C++ Programmer’s Guide.

Example

See the example in the article in the Visual C++ Programmer's Guide.

See Also   CArchive