Indicates whether this instance and a specified object are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stringKeyValuePair_type), | intent(in) | :: | me |
THe current instance. |
||
type(tem_stringKeyValuePair_type), | intent(in) | :: | other |
The instance to compare with the current instance. |
.true. when both instances are equal, otherwise .false.
pure function tem_stringKVP_equals(me, other) result (res) ! --------------------------------------------------------------------------- !> THe current instance. type(tem_stringKeyValuePair_type), intent(in) :: me !> The instance to compare with the current instance. type(tem_stringKeyValuePair_type), intent(in) :: other !> .true. when both instances are equal, otherwise .false. logical :: res ! --------------------------------------------------------------------------- res = (me%key == other%key) .and. (me%value == other%value) end function tem_stringKVP_equals