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

Method pop

StackList.h:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 T* pop() noexcept
48 {
49 TStackListEntry* last = mLast;
50
51 if(mLast) {
52 mLast = mLast->prev;
53
54 if(mLast) {
55 mLast->next = nullptr;
56
57 last->next = nullptr;
58 last->prev = nullptr;
59 } else {
60 mFirst = nullptr;
61 }
62 }
63
64 return static_cast<T*>(last);
65 }
66
67 T& back() noexcept { return *static_cast<T*>(mLast); }
68

Callers 2

~LambdaScopeHandlerMethod · 0.80
~ScopeHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected