|
/*
* File: MyComparator.hpp
* Author: Administrator
*
* Created on May 6, 2009, 5:11 PM
*/
#ifndef _MYCOMPARATOR_HPP
#define _MYCOMPARATOR_HPP
#include "MyType.hpp"
template <typename T>
class MyComparator{
public:
bool operator() (const T& t1, const T& t2) const{
return t1.getValue()<t2.getValue();
}
};
#endif /* _MYCOMPARATOR_HPP */
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.