vec_string_get_unchecked Function

private pure function vec_string_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_string_t

Arguments

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

Return Value type(string_type)


Source Code

   pure function vec_string_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_string_t), intent(in) :: self
      integer(default_int), intent(in) :: index
      type(string_type) :: value

      value = self%items(index)
   end function vec_string_get_unchecked