18 #ifndef _DECAF_UTIL_COMPARATOR_H_ 19 #define _DECAF_UTIL_COMPARATOR_H_ 56 virtual bool operator() (
const T& left,
const T& right)
const = 0;
88 virtual int compare(
const T& o1,
const T& o2)
const = 0;
A comparison function, which imposes a total ordering on some collection of objects.
Definition: Comparator.h:40
virtual int compare(const T &o1, const T &o2) const =0
Compares its two arguments for order.
virtual ~Comparator()
Definition: Comparator.h:43
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
virtual bool operator()(const T &left, const T &right) const =0
Implementation of the Binary function interface as a means of allowing a Comparator to be passed to a...