1 ///////////////////////////////////////////////////////////
2 // Softwarebauelemente II, Aufgabe C1.1
3 //
4 // author: Stephan Brumme
5 // last changes: July 3, 2001
6
7
8 #include <functional>
9
10 // Template that compares two objects
11
12 template <typename T>
13 class MyLess : public std::binary_function<T, T, bool>
14 {
15 public:
16 bool operator() (const T &t1, const T &t2) const
{
17 return t1 < t2;
18 }
19 };
20
21