| 68 | // 自定义绑定器,返回类型是一个函数模板,重载 operator() |
| 69 | template<typename Compare, typename T> |
| 70 | _mybind1st<Compare, T> mybind1st(Compare comp, const T &val) |
| 71 | { |
| 72 | // 直接使用函数模板好处就是可以直接进行类型的推演 |
| 73 | return _mybind1st<Compare, T>(comp, val); |
| 74 | } |
| 75 | |
| 76 | // find_if 函数模板 |
| 77 | template<typename Iterator, typename Compare> |