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

Method push

StackList.h:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 StackList() = default;
30
31 void push(TStackListEntry& entry) noexcept
32 {
33 entry.next = nullptr;
34
35 if(!mFirst) {
36 mFirst = &entry;
37 mFirst->prev = nullptr;
38
39 } else {
40 mLast->next = &entry;
41 entry.prev = mLast;
42 }
43
44 mLast = &entry;
45 }
46
47 T* pop() noexcept
48 {

Callers 3

LambdaScopeHandlerMethod · 0.80
ScopeHandlerMethod · 0.80
await_suspendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected