This reference relies on the verbiage in the standard: "No reallocation
shall take place during insertions that happen after a call to reserve()
until the time when an insertion would make the size of the vector
greater than the value of capacity()."
However, this claim does not really hold. If there is a shrink_to_fit()
call or a swap() with a default-constructed vector between reserve() and
insert, then the vector capacity is reset (as it should). So I think the
above remark makes a silent assumption that the vector is not shrink or
swapped meanwhile "during insertions"; this silent assumption could very
reasonably involve clear() and erase() as well. Ergo, it does not say
anything about how clear() behaves regarding the capacity.