Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
DeletionPolicies.cxx
Go to the documentation of this file.
2 
3 
4 #include <assert.h>
5 
8 
9  assert( !TrackerList.empty());
10 
11  // Pick the element at the top of the stack
12  DeletionTracker* pTop = TrackerList.back();
13 
14  // Remove that object off the stack _before_ deleting pTop
15  TrackerList.pop_back();
16 
17  // Destroy the element
18  delete pTop;
19 }
Abstract class to hold priority for deletion.
void AtExitFn()
Gets added to the std::atexit queue every time a singleton get created. Called once for every singlet...