I have a vector of chars which contains some data elements.
std::vector<unsigned char> data_1;
I have an unsigned char * which is pointing another set of data elements.
unsigned char * data_2;
Question:
Is there a way I can merge data_2
into data_1
which is a vector without causing a copy of the data elements at all?
I read about move semantics being referred in this discussion but I am a bit unsure if it is possible in this situation I have here.
Aucun commentaire:
Enregistrer un commentaire