完成equal_to

This commit is contained in:
邹晓航
2014-10-29 15:01:28 +08:00
parent 1ad74b0211
commit d97ee68238

View File

@@ -13,5 +13,16 @@ namespace TinySTL{
return x < y;
}
};
//********** [equal_to] ****************
template<class T>
struct equal_to{
typedef T first_argument_type;
typedef T second_argument_type;
typedef bool result_type;
result_type operator()(const first_argument_type& x, const second_argument_type& y){
return x == y;
}
};
}
#endif