1: // Created by Frank M. Carrano and Tim Henry. 2: // Copyright (c) 2013 __Pearson Education__. All rights reserved. 4: /** @file GoodMemory.h 5: Listing C2-2 */ 6: #include <string> 7: #include "ToyBox.h" 8: using namespace std; 9: class GoodMemory 10: { 11: private: 12: ToyBox<string>* someBoxPtr; 13: public: 14: GoodMemory(); // Default constructor 15: ~GoodMemory(); // Destructor 16: void fixedLeak(const double& someItem); 17: }; // end GoodMemory