strvec_iterate() evaluates psv twice for each iteration, and does strvec_size() call on every iteration.
Latter does partially protect against cases where someone shrinks the vector inside the iteration, but doesn't make it legal - iterator does would not follow backward such removals.
strvec_iterate() evaluates psv twice for each iteration, and does strvec_size() call on every iteration.
Latter does partially protect against cases where someone shrinks the vector inside the iteration, but doesn't make it legal - iterator does would not follow backward such removals.