max_func Abstract Interface

abstract interface
private pure function max_func(this, comparison)

Arguments

Type IntentOptional AttributesName
class(list), intent(in) :: this
procedure(comparison_func) :: comparison

A procedure which evaluates whether a container object is less than, equal to, or greater than another

Return Value class(container), allocatable

The largest item in the list, as determined by the comparison function