There is no need to pass the function type as the template parameter as it's determined by the type of the objects being compared anyhow.