Subversion Repositories spk

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#ifndef EXT_UTILS_INCLUDED
2
#define EXT_UTILS_INCLUDED
3
 
4
namespace ext
5
{
6
 
7
template <class Ty1, class Ty2>
8
class pair
9
{
10
	public:
11
		Ty1 left;
12
		Ty2 right;
13
 
14
		pair(const Ty1 &val1, const Ty2 &val2) { left=val1; right=val2; }
15
		pair(const pair &other) { left=other.left; right=other.right; }
16
		pair() { }
17
};
18
 
19
template <class Ty>
20
class less
21
{
22
	public:
23
		bool operator() (const Ty& left, const Ty& right)
24
		{
25
			return left < right;
26
		}
27
};
28
 
29
}; // namespace ext
30
 
31
#endif // !defined(EXT_UTILS_INCLUDED)