vec_int64_capacity Function

private pure function vec_int64_capacity(self) result(n)

Elements that fit before the next reallocation.

Type Bound

vector_int64_t

Arguments

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

Return Value integer(kind=default_int)


Called by

proc~~vec_int64_capacity~~CalledByGraph proc~vec_int64_capacity vector_int64_t%vec_int64_capacity proc~vec_int64_append vector_int64_t%vec_int64_append proc~vec_int64_append->proc~vec_int64_capacity proc~vec_int64_grow vec_int64_grow proc~vec_int64_append->proc~vec_int64_grow proc~vec_int64_grow->proc~vec_int64_capacity proc~vec_int64_push_back vector_int64_t%vec_int64_push_back proc~vec_int64_push_back->proc~vec_int64_capacity proc~vec_int64_push_back->proc~vec_int64_grow proc~vec_int64_resize vector_int64_t%vec_int64_resize proc~vec_int64_resize->proc~vec_int64_capacity proc~vec_int64_resize->proc~vec_int64_grow proc~vec_int64_shrink_to_fit vector_int64_t%vec_int64_shrink_to_fit proc~vec_int64_shrink_to_fit->proc~vec_int64_capacity proc~vec_int64_take vector_int64_t%vec_int64_take proc~vec_int64_take->proc~vec_int64_capacity proc~vec_int64_take->proc~vec_int64_shrink_to_fit proc~vec_int64_reserve vector_int64_t%vec_int64_reserve proc~vec_int64_reserve->proc~vec_int64_grow

Source Code

   pure function vec_int64_capacity(self) result(n)
      !! Elements that fit before the next reallocation.
      class(vector_int64_t), intent(in) :: self
      integer(default_int) :: n

      if (allocated(self%items)) then
         n = size(self%items, kind=default_int)
      else
         n = 0
      end if
   end function vec_int64_capacity