Lines Matching defs:FlatHashMapPolicy
612 struct FlatHashMapPolicy { struct
613 using slot_policy = container_internal::map_slot_policy<K, V>;
614 using slot_type = typename slot_policy::slot_type;
615 using key_type = K;
616 using mapped_type = V;
617 using init_type = std::pair</*non const*/ key_type, mapped_type>;
620 static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { in construct()
626 static auto destroy(Allocator* alloc, slot_type* slot) { in destroy()
631 static auto transfer(Allocator* alloc, slot_type* new_slot, in transfer()
637 static decltype(absl::container_internal::DecomposePair( in decltype()
645 static constexpr HashSlotFn get_hash_slot_fn() { in get_hash_slot_fn()
651 static size_t space_used(const slot_type*) { return 0; } in space_used()
653 static std::pair<const K, V>& element(slot_type* slot) { return slot->value; } in element()
655 static V& value(std::pair<const K, V>* kv) { return kv->second; } in value()
656 static const V& value(const std::pair<const K, V>* kv) { return kv->second; } in value()