MCPcopy Create free account
hub / github.com/Singular/Singular / pop

Method pop

kernel/oswrapper/vspace.h:1058–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056 FastLock _lock;
1057 VRef<Node> _head, _tail;
1058 VRef<Node> pop() {
1059 VRef<Node> result = _head;
1060 if (_head->next.is_null()) {
1061 _head = _tail = vnull<Node>();
1062 } else {
1063 _head = _head->next;
1064 }
1065 return result;
1066 }
1067 void push(VRef<Node> node) {
1068 node->next = vnull<Node>();
1069 if (_tail.is_null()) {

Callers

nothing calls this directly

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected