vec_int32_get_unchecked Function

private pure function vec_int32_get_unchecked(self, index) result(value)

Element index with no bounds check, for hot loops that have already established the range. Reading outside 1:size() is undefined.

Type Bound

vector_int32_t

Arguments

Type IntentOptional Attributes Name
class(vector_int32_t), intent(in) :: self
integer(kind=default_int), intent(in) :: index

Return Value integer(kind=int32)


Source Code

   pure function vec_int32_get_unchecked(self, index) result(value)
      !! Element `index` with no bounds check, for hot loops that have already
      !! established the range. Reading outside `1:size()` is undefined.
      class(vector_int32_t), intent(in) :: self
      integer(default_int), intent(in) :: index
      integer(int32) :: value

      value = self%items(index)
   end function vec_int32_get_unchecked