comparison_func Abstract Interface

abstract interface
public pure function comparison_func(item1, item2)

Arguments

Type IntentOptional AttributesName
class(container), intent(in) :: item1

The first item in the comparison

class(container), intent(in) :: item2

The second item in the comparison

Return Value real

negative if item1 < item2, 0 if item1 == item2, positive if item1 > item2

Description

An abstract interface for a procedure comparing two container objects. Note that a procedure may satisfy both this abstract interface and subtraction_func.