diff --git a/TinySTL/Functional.h b/TinySTL/Functional.h index 85a86ee..a842a04 100644 --- a/TinySTL/Functional.h +++ b/TinySTL/Functional.h @@ -13,5 +13,16 @@ namespace TinySTL{ return x < y; } }; + //********** [equal_to] **************** + template + 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 \ No newline at end of file