vec_int64_clear Subroutine

private 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.

Type Bound

vector_int64_t

Arguments

Type IntentOptional Attributes Name
class(vector_int64_t), intent(inout) :: self

Source Code

   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