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

Method STM

Data Structures/Segment Tree Merging.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 int T;
13 int id[N * 30];
14 STM() {
15 T = 0;
16 for (int i = 1; i < N * 30; i++) id[i] = i;
17 }
18 inline int new_node() {
19 int cur = id[++T];
20 t[cur].l = t[cur].r = t[cur].sz = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected