예제 #1
0
	// remove all contained objects. 
	virtual void clear()
	{
		while(!objects.empty())
		{
#ifdef _DEBUG
			Target *obj=objects.begin()->second;
			delete obj;
#else
			delete objects.begin()->second;
#endif
		}
		assert(objects.empty());
	}
예제 #2
0
파일: sole.hpp 프로젝트: guker/flipsta
 ~SoleStore() {
     // All objects must have gone from memory or they'll try and remove
     // themselves when they are deleted.
     assert (objects_.empty());
 }