Hi,
I have a 5x2 matrix like this:
I want to remove the 3rd row (3 3) so I use the following code:
1 2
3 2
3 3
1 2
2 3
int colcount=2;
X* begin_ = begin()+2*colcount; //(pointer to 3- row3th )
...
MoveMemory(begin_ + colcount, begin_, (5-3) * colcount) * sizeof(X));
this->row-=1;
5-3 is the number rows of block to move
However I get unexpected results.
Maybe I'm misinterpreting? this is my first time using this function.
How to fix this?
Thank you