| 77 | } |
| 78 | |
| 79 | template <typename Less> iterator highest(Less less_than = Less()) { |
| 80 | iterator highest = end(); |
| 81 | for (iterator it = begin(); it != end(); ++it) { |
| 82 | if (highest == end() || less_than(highest->first, it->first)) { |
| 83 | highest = it; |
| 84 | } |
| 85 | } |
| 86 | return highest; |
| 87 | } |
| 88 | |
| 89 | template <typename Less> |
| 90 | const_iterator highest(Less less_than = Less()) const { |