| 119 | |
| 120 | private: |
| 121 | struct Key { |
| 122 | std::string url; |
| 123 | unsigned long long chunkIdx; |
| 124 | |
| 125 | Key(const std::string &urlIn, unsigned long long chunkIdxIn) |
| 126 | : url(urlIn), chunkIdx(chunkIdxIn) {} |
| 127 | bool operator==(const Key &other) const { |
| 128 | return url == other.url && chunkIdx == other.chunkIdx; |
| 129 | } |
| 130 | }; |
| 131 | |
| 132 | struct KeyHasher { |
| 133 | std::size_t operator()(const Key &k) const { |