Lines Matching refs:Key
46 template<class Key>
51 fifo_map_compare(std::unordered_map<Key, std::size_t>* k) : keys(k) {}
57 bool operator()(const Key& lhs, const Key& rhs) const
79 void add_key(const Key& key)
84 void remove_key(const Key& key)
91 std::unordered_map<Key, std::size_t>* keys = nullptr;
98 class Key,
100 class Compare = fifo_map_compare<Key>,
101 class Allocator = std::allocator<std::pair<const Key, T>>
105 using key_type = Key;
107 using value_type = std::pair<const Key, T>;
117 using internal_map_type = std::map<Key, T, Compare, Allocator>;
157 T& at(const Key& key)
163 const T& at(const Key& key) const
169 T& operator[](const Key& key)
176 T& operator[](Key&& key)
409 size_type count(const Key& key) const
415 iterator find(const Key& key)
421 const_iterator find(const Key& key) const
427 std::pair<iterator, iterator> equal_range(const Key& key)
433 std::pair<const_iterator, const_iterator> equal_range(const Key& key) const
439 iterator lower_bound(const Key& key)
445 const_iterator lower_bound(const Key& key) const
451 iterator upper_bound(const Key& key)
457 const_iterator upper_bound(const Key& key) const
510 std::unordered_map<Key, std::size_t> m_keys;
522 template <class Key, class T, class Compare, class Allocator>
523 inline void swap(nlohmann::fifo_map<Key, T, Compare, Allocator>& m1,
524 nlohmann::fifo_map<Key, T, Compare, Allocator>& m2)