Q:

We can compute an iterator to the element nearest the middle of a vector

0

We can compute an iterator to the element nearest the middle of a vector.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

// compute an iterator to the element closest to the midpoint of vi
auto mid = vi.begin() + vi.size() / 2;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now