У меня есть простая функция, которая использует такой вектор (псевдокод):
void someFunc(void) {
std::vector<std::string> contentVector;
// here are some operations on the vector
// should I call the clear() here or this could be ommited ?
contentVector.clear();
}
Должен ли я вызывать clear() или это можно опустить?