| 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 | { |
no outgoing calls
no test coverage detected