Lines Matching refs:K

30 template <typename K, typename V, typename Comparator = std::less<K>,
31 typename Allocator = std::allocator<std::pair<const K, V>>>
34 typedef SafeMap<K, V, Comparator, Allocator> Self;
37 typedef typename ::std::map<K, V, Comparator, Allocator>::key_compare key_compare;
38 typedef typename ::std::map<K, V, Comparator, Allocator>::value_compare value_compare;
39 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type;
40 typedef typename ::std::map<K, V, Comparator, Allocator>::iterator iterator;
41 typedef typename ::std::map<K, V, Comparator, Allocator>::const_iterator const_iterator;
42 typedef typename ::std::map<K, V, Comparator, Allocator>::size_type size_type;
43 typedef typename ::std::map<K, V, Comparator, Allocator>::key_type key_type;
44 typedef typename ::std::map<K, V, Comparator, Allocator>::value_type value_type;
91 V Get(const K& k) const { in Get()
98 iterator Put(const K& k, const V& v) { in Put()
103 iterator Put(const K& k, V&& v) { in Put()
110 iterator PutBefore(const_iterator pos, const K& k, const V& v) { in PutBefore()
116 iterator PutBefore(const_iterator pos, const K& k, V&& v) { in PutBefore()
126 iterator Overwrite(const K& k, const V& v) { in Overwrite()
136 V& GetOrCreate(const K& k, CreateFn create) { in GetOrCreate()
147 iterator FindOrAdd(const K& k, const V& v) { in FindOrAdd()
152 iterator FindOrAdd(const K& k) { in FindOrAdd()
167 ::std::map<K, V, Comparator, Allocator> map_;
170 template <typename K, typename V, typename Comparator, typename Allocator>
171 bool operator==(const SafeMap<K, V, Comparator, Allocator>& lhs,
172 const SafeMap<K, V, Comparator, Allocator>& rhs) {
176 template <typename K, typename V, typename Comparator, typename Allocator>
177 bool operator!=(const SafeMap<K, V, Comparator, Allocator>& lhs,
178 const SafeMap<K, V, Comparator, Allocator>& rhs) {