"Integration of the Standard Template Library and the Microsoft Foundation Class" - читать интересную книгу автора (Wolfgang Paul, Song Yang)

2.2.2 STL Implementation

The class CStrokeList is defined to replace the CTypedPtrList‹CObject, CStroke*› as follows:

class CStrokeList: public CObject, public std::list‹CStroke*› {

public:

 CStrokeList () {}

 CStrokeList(const CStrokeListamp;);

 DECLARE_SERIAL(CStrokeList)

public:

 virtual void Serialize(CArchiveamp; ar);

};

The CArray‹CPoint, CPoint› in CStroke is replaced by a std::list‹CPoint›.