18 #ifndef _DECAF_UTIL_COMPARATORS_LESS_H_
19 #define _DECAF_UTIL_COMPARATORS_LESS_H_
25 namespace comparators {
38 template<
typename E >
45 virtual bool operator()(
const E& left,
const E& right)
const {
49 virtual int compare(
const E& o1,
const E& o2)
const {
Less()
Definition: Less.h:42
A comparison function, which imposes a total ordering on some collection of objects.
Definition: Comparator.h:40
virtual bool operator()(const E &left, const E &right) const
Implementation of the Binary function interface as a means of allowing a Comparator to be passed to a...
Definition: Less.h:45
virtual ~Less()
Definition: Less.h:43
virtual int compare(const E &o1, const E &o2) const
Compares its two arguments for order.
Definition: Less.h:49
Simple Less Comparator that compares to elements to determine if the first is less than the second...
Definition: Less.h:39