I have the following. The structure is prototyped, so it compiles fine.
struct vertexNodeInfo { vector<vertexNodeInfo> node; };
I am trying to write an octree thingy. I want to use a recursive function to continue adding a node to each node until I go to a specific point, and at that time the function, and not adding another node, will add the sheet. I want to use memory without adding a node or leaf, if possible.
Templates may help in this situation, but I'm not sure how to use them ...
I don’t think I explained well. Here is the chart:

I have no idea that what I am asking is impossible or too difficult to understand, or just plain stupid, but I cannot figure it out on my own. I'm sorry that I can’t explain it better.
I am using C ++ 98/03 (VC ++ 2008) and cannot use C ++ 11
Any help at all would be greatly appreciated.
ADDITIONAL INFORMATION:
Best explanation: I want an array of an array of an array of data array. Using memory is very important in this (I store several million items, so one byte is of the utmost importance). Each array can contain another 8 arrays, but until I use it, I want each of the arrays to not use memory. This is a kind of octet.
ADDITIONAL INFORMATION:
Here is another diagram. It is a bit large, so you may need to right-click it and select Open image in new tab to make it readable.
What I don’t do is “brown” (red + green) boxes, where each field reserves memory for both more nodes and leaf data. It will require too much memory for my needs.
This is basically what I'm trying to achieve, depicted as 2D for simplicity:
