18 #ifndef _DECAF_UTIL_COMPARATORS_LESS_H_ 19 #define _DECAF_UTIL_COMPARATORS_LESS_H_ 25 namespace comparators {
36 template<
typename E >
43 virtual bool operator() (
const E& left,
const E& right )
const {
47 virtual int compare(
const E& o1,
const E& o2 )
const {
51 }
else if( o1 < o2 ) {
Less()
Definition: Less.h:40
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:43
virtual int compare(const E &o1, const E &o2) const
Compares its two arguments for order.
Definition: Less.h:47
virtual ~Less()
Definition: Less.h:41
Simple Less Comparator that compares to elements to determine if the first is less than the second...
Definition: Less.h:37
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25