Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(arg_element_t), | intent(in) | :: | arg | |||
type(flag_t), | intent(in) | :: | flags(:) |
function is_arg_contained_in_flags(arg, flags) result(res) implicit none type(arg_element_t), intent(in) :: arg type(flag_t), intent(in) :: flags(:) logical :: res integer :: i res = .false. do i = 1, ubound(flags, dim=1) res = res & .or. flags(i)%long_f == arg%v & .or. flags(i)%short_f == arg%v if (res) return end do end function is_arg_contained_in_flags