(std::chrono::steady_clock::now().time_since_epoch()).count();
}
-template<class Entry, int Size>
-struct HashTable {
- Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; }
-
-private:
- std::vector<Entry> table = std::vector<Entry>(Size); // Allocate on the heap
-};
-
enum SyncCout { IO_LOCK, IO_UNLOCK };
std::ostream& operator<<(std::ostream&, SyncCout);