| 94 | template<typename T> |
| 95 | struct Comparator : public std::binary_function<std::shared_ptr<T>, std::shared_ptr<T>, bool> { |
| 96 | bool operator()(std::shared_ptr<T> const &left, std::shared_ptr<T> const &right) const { |
| 97 | return *left.get() < *right.get(); |
| 98 | } |
| 99 | }; |
| 100 | |
| 101 |