so what i'm trying to get my head around it say i have a vector of vectors containing some unsigned chars and i want to copy a certain vector to another vector as follows.
std::vector< std::vector< unsigned char > > foo;
std::vector < unsigned char > bar;
for (int x = 0; x < foo.size(); x++)
{
// do stuff
if (x == 3)
{
bar.push_back(&foo[x]);
}
}
How can i go about doing this?
Thanks in advance.