MCPcopy Create free account
hub / github.com/ThunderCls/xAnalyzer / ClearStack

Function ClearStack

xAnalyzer/xanalyzer.cpp:2153–2161  ·  view source on GitHub ↗

------------------------------------------------------------------------------------ clearing standard containers is swapping with an empty version of the container ------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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

Callers 1

AnalyzeBytesRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected