| 56 | } |
| 57 | |
| 58 | template <typename Less> iterator lowest(Less less_than = Less()) { |
| 59 | iterator lowest = end(); |
| 60 | for (iterator it = begin(); it != end(); ++it) { |
| 61 | if (lowest == end() || less_than(it->first, lowest->first)) { |
| 62 | lowest = it; |
| 63 | } |
| 64 | } |
| 65 | return lowest; |
| 66 | } |
| 67 | |
| 68 | template <typename Less> |
| 69 | const_iterator lowest(Less less_than = Less()) const { |