mercredi 4 mai 2016

C++ vector change type

I'm wondering if the below is a valid conversion of vector type:

vector<UINT16> u;
vector<UINT8> v(u.begin(), u.end());

I found this link relevant: C++ convert vector<int> to vector<double>

However, need to confirm if the above conversion is valid or not.

Aucun commentaire:

Enregistrer un commentaire