| 133 | |
| 134 | template <typename GetGuarantee> |
| 135 | std::vector<Encoded> EncodeGuarantees(const GetGuarantee& get, int count) { |
| 136 | std::vector<Encoded> encoded; |
| 137 | for (int i = 0; i < count; ++i) { |
| 138 | EncodeOneGuarantee(i, get(i), &encoded); |
| 139 | } |
| 140 | return encoded; |
| 141 | } |
| 142 | |
| 143 | // Comparator for sort |
| 144 | struct ByGuarantee { |
no outgoing calls