Lines Matching refs:Key
210 std::pair<iterator, bool> try_emplace(KeyT &&Key, Ts &&... Args) {
212 if (LookupBucketFor(Key, TheBucket))
219 InsertIntoBucket(TheBucket, std::move(Key), std::forward<Ts>(Args)...);
229 std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) {
231 if (LookupBucketFor(Key, TheBucket))
237 TheBucket = InsertIntoBucket(TheBucket, Key, std::forward<Ts>(Args)...);
291 value_type& FindAndConstruct(const KeyT &Key) {
293 if (LookupBucketFor(Key, TheBucket))
296 return *InsertIntoBucket(TheBucket, Key);
299 ValueT &operator[](const KeyT &Key) {
300 return FindAndConstruct(Key).second;
303 value_type& FindAndConstruct(KeyT &&Key) {
305 if (LookupBucketFor(Key, TheBucket))
308 return *InsertIntoBucket(TheBucket, std::move(Key));
311 ValueT &operator[](KeyT &&Key) {
312 return FindAndConstruct(std::move(Key)).second;
378 assert(!FoundVal && "Key already in new map?");
515 BucketT *InsertIntoBucket(BucketT *TheBucket, KeyArg &&Key,
517 TheBucket = InsertIntoBucketImpl(Key, Key, TheBucket);
519 TheBucket->getFirst() = std::forward<KeyArg>(Key);
525 BucketT *InsertIntoBucketWithLookup(BucketT *TheBucket, KeyT &&Key,
527 TheBucket = InsertIntoBucketImpl(Key, Lookup, TheBucket);
529 TheBucket->getFirst() = std::move(Key);
535 BucketT *InsertIntoBucketImpl(const KeyT &Key, const LookupKeyT &Lookup,