If I have a class that has a vector in it like this:
And I make 3 new Nodes from an existing node, and delete it like this:Code:sturct Node{ std::vector<T> data; // ... };
is there any memory leaks, or is all well?Code:Node* curr = root; // make three new nodes from curr delete curr;