다음을 통해 공유


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

참고 항목

참조

CArchive 클래스

개념

MFC 매크로 및 전역