SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2. #include "Structures.h"
  3.  
  4. template <class TYPE, class ARG_TYPE>
  5. class CTypedPtrArrayDerived : public CTypedPtrArray < TYPE, ARG_TYPE>
  6. {
  7. public:
  8.     virtual ~CTypedPtrArrayDerived();
  9. };
  10.  
  11. template <class TYPE, class ARG_TYPE>
  12. CTypedPtrArrayDerived <TYPE, ARG_TYPE>::~CTypedPtrArrayDerived()
  13. {
  14.     for (int i = 0; i < GetSize(); i++)
  15.     {
  16.         delete GetAt(i);
  17.     }
  18.     RemoveAll();
  19.     FreeExtra();
  20. }
  21.  
  22.  
  23. typedef CTypedPtrArrayDerived <CPtrArray, CITIES*> CCitiesArrayDerived;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top