Cheers
-------------------------------------------
I'm in need of a vector member function that would allow me to "insert" a number of elements from one vector into another vector without resizing or destroying either.
An example of what I'm wanting to do is assign the contents of two[3-5][50-54] to one[7-9][2-6]. Other than looping through both vectors using .at(), is there a way to copy this?
This would be continuous within a user controlled loop with differing elements being exchanged.
Expand|Select|Wrap|Line Numbers
- typedef vector<vector<unsigned char> > vec;
- vec one(10, vector<unsigned char>(10, '1')),
- two(90, vector<unsigned char>(90, '2'));