Поделиться через


SerializeElements

CArray, CList, and CMap call this function to serialize elements.

template< class TYPE > 
void AFXAPI SerializeElements(
   CArchive& ar,
      TYPE* pElements,
   INT_PTR nCount 
);

Параметры

  • 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

Заметки

The default implementation does a bitwise read or write.

For information on implementing this and other helper functions, see the article Collections: How to Make a Type-Safe Collection.

Пример

See the example in the article Collections: How to Make a Type-Safe Collection.

Требования

Header: afxtempl.h

См. также

Основные понятия

MFC Macros and Globals

CArchive Class