Resizing a vector to zero using vec.resize(0, value)
is misleading. It’s either unreadable if the intent was simply to clear the
vector, making the code harder to understand, or suspicious and unintentional if a resize was actually expected, but the arguments were accidentally
swapped.