Drop every element but keep the allocated storage, so a vector reused across iterations of an outer loop stops reallocating.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(vector_int64_t), | intent(inout) | :: | self |
pure subroutine vec_int64_clear(self) !! Drop every element but keep the allocated storage, so a vector reused !! across iterations of an outer loop stops reallocating. class(vector_int64_t), intent(inout) :: self self%n_items = 0 end subroutine vec_int64_clear