posofval_label Function

public function posofval_label(me, val, nextifnotfound, lower, upper) result(pos)

the actual position of a given value in the dynamic array

most likely this is what you need in codes, using this data structure, it first does the binary search on the sorted values with sortposofval_label and then returns the looked up position in the original unsorted array, which corresponds to the position returned by the append routine.

Arguments

TypeIntentOptionalAttributesName
type(dyn_labelarray_type), intent(in) :: me
character(len=*), intent(in) :: val
logical, intent(in), optional :: nextifnotfound

flag to indicate, if the position of the next entry in the sorted list should be returned instead, if val is not found.

integer, intent(in), optional :: lower
integer, intent(in), optional :: upper

Return Value integer


Calls

proc~~posofval_label~~CallsGraph proc~posofval_label posofval_label interface~sortedposofval~4 sortedposofval proc~posofval_label->interface~sortedposofval~4 proc~sortposofval_label sortposofval_label interface~sortedposofval~4->proc~sortposofval_label

Called by

proc~~posofval_label~~CalledByGraph proc~posofval_label posofval_label interface~positionofval~4 positionofval interface~positionofval~4->proc~posofval_label

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, public :: sortpos
integer, public :: lb
integer, public :: ub