How to reserve a vector of strings, if string size is variable?
Advertisements I want to add many strings to a vector, and from what I’ve found, calling reserve() before this is more efficient. For a vector of ints, this makes sense because int is 4 bytes, so calling reserve(10) clearly reserves 40 bytes. I know the number of strings, which is about 60000. Should I call… Read More How to reserve a vector of strings, if string size is variable?