Rev 1 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef EXT_UTILS_INCLUDED
#define EXT_UTILS_INCLUDED
namespace ext
{
template <class Ty1, class Ty2>
class pair
{
public:
typedef Ty1 first_type;
typedef Ty2 second_type;
Ty1 first;
Ty2 second;
pair()
: first(Ty1()), second(Ty2()) { }
pair(const Ty1& val1, const Ty2& val2)
: first(val1), second(val2) { }
pair(const pair& other)
: first(other.first), second(other.second) { }
};
template <class Ty>
class less
{
public:
bool operator() (const Ty& left, const Ty& right)
{
return first < second;
}
};
}; // namespace ext
#endif // !defined(EXT_UTILS_INCLUDED)