MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / removeTop

Method removeTop

LifetimeTracker.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138//-----------------------------------------------------------------------------
139
140void LifetimeTracker::removeTop()
141{
142 objects.pop_back();
143
144 auto it = std::ranges::remove_if(objects, [&](const LifetimeEntry& e) { return (e.scope == scopeCounter); });
145 objects.erase(it.begin(), it.end());
146
147 --scopeCounter;
148}
149//-----------------------------------------------------------------------------
150
151bool LifetimeTracker::EndScope(OutputFormatHelper& ofm, bool coveredByReturn)

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected