Reduce the capacity of this vector to its size. If an exception is thrown (other than by the move constructor of a non‐copy‐insertable value_type), *this is unaffected. Note that this method has no effect if the capacity is equivalent to the size.