Initialize empty vector in structure – c++

Both std::string and std::vector<T> have constructors initializing the object to be empty. You could use std::vector<unsigned char>() but I’d remove the initializer.

Leave a Comment