Extracting a reference from a c++ vector
- by Archanimus
Hello folks,
I have a vector< vector< vector< int and I would like to extract from it a vector< vector< int to process it individually.
The problem is that when I write :
myMatrix = myCube[anIndex];
the matrix is copied but I only want a reference in order to save memory.
Can you please help me out ?
Thanks a lot!