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›.