123456789101112
struct node_t { int left; int right; }; std::vector<node_t> tree; node_t * left(node_t * node) { return &tree[node->left]; }