What is the fastest way (if there is any other) to convert a std::vector from one datatype to another (with the idea to save space)? For example:
std::vector
You should be able to use assign like this:
assign
vector v; //... vector u; //... u.assign(v.begin(), v.end());