This is a simple helper-type following the RAII idiom . On construction a snapshot of the given mono allocator is taken and the allocator is reset to the state on destruction.
Definition at line 941 of file monoallocator.inl.
Public Field Index: | |
| TMonoAllocator & | MA |
| The mono allocator to reset on destruction. | |
| Snapshot | snapshot |
| The snapshot taken on construction. | |
Public Method Index: | |
| Resetter (TMonoAllocator &ma) | |
| ~Resetter () | |
| Destructor. Resets the mono allocator given with construciton. | |
| TMonoAllocator& alib::monomem::TMonoAllocator< TAllocator >::Resetter::MA |
The mono allocator to reset on destruction.
Definition at line 942 of file monoallocator.inl.
| Snapshot alib::monomem::TMonoAllocator< TAllocator >::Resetter::snapshot |
The snapshot taken on construction.
Definition at line 943 of file monoallocator.inl.
|
inline |
Constructor.
| ma | The mono allocator to reset on destruction. |
Definition at line 947 of file monoallocator.inl.
|
inline |
Destructor. Resets the mono allocator given with construciton.
Definition at line 950 of file monoallocator.inl.