MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / pop

Method pop

Data Structures/Persistent Queue.cpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 cur++;
78 }
79 T pop(int r) { // pops the top element of the rth queue and returns the popped element
80 st.upd(r, L[r], 0);
81 L[cur] = L[r] + 1;
82 R[cur] = R[r];
83 cur++;
84 return st.get_val(r, L[r]);
85 }
86};
87
88int32_t main(){

Callers 1

mainFunction · 0.45

Calls 2

updMethod · 0.45
get_valMethod · 0.45

Tested by

no test coverage detected