------------------------------------------------------------------------------------ clearing standard containers is swapping with an empty version of the container ------------------------------------------------------------------------------------
| 2151 | // clearing standard containers is swapping with an empty version of the container |
| 2152 | // ------------------------------------------------------------------------------------ |
| 2153 | void ClearStack(stack<INSTRUCTIONSTACK> &q) |
| 2154 | { |
| 2155 | stack<INSTRUCTIONSTACK> empty; |
| 2156 | while (!q.empty()) |
| 2157 | { |
| 2158 | q.pop(); |
| 2159 | } |
| 2160 | swap(q, empty); |
| 2161 | } |
| 2162 | |
| 2163 | void ClearLoopStack(stack<LOOPSTACK*> &q) |
| 2164 | { |