| 142 | |
| 143 | private: |
| 144 | struct Key { |
| 145 | std::string url; |
| 146 | unsigned long long chunkIdx; |
| 147 | |
| 148 | Key(const std::string &urlIn, unsigned long long chunkIdxIn) |
| 149 | : url(urlIn), chunkIdx(chunkIdxIn) {} |
| 150 | bool operator==(const Key &other) const { |
| 151 | return url == other.url && chunkIdx == other.chunkIdx; |
| 152 | } |
| 153 | }; |
| 154 | |
| 155 | struct KeyHasher { |
| 156 | std::size_t operator()(const Key &k) const { |