Lines Matching defs:keys
51 fifo_map_compare(std::unordered_map<Key, std::size_t>* k) : keys(k) {}
54 This function compares two keys with respect to the order in which they
55 were added to the container. For this, the mapping keys is used.
59 // look up timestamps for both keys
60 const auto timestamp_lhs = keys->find(lhs);
61 const auto timestamp_rhs = keys->find(rhs);
63 if (timestamp_lhs == keys->end())
69 if (timestamp_rhs == keys->end())
81 keys->insert({key, timestamp++});
86 keys->erase(key);
90 /// pointer to a mapping from keys to insertion timestamps
91 std::unordered_map<Key, std::size_t>* keys = nullptr;
467 /// returns the function that compares keys
509 /// the keys