Home | History | Annotate | Download | only in unord.map

Lines Matching defs:Key

12 // template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
13 // class Alloc = allocator<pair<const Key, T>>>
21 struct Key {
22 template <typename T> Key(const T&) {}
23 bool operator== (const Key&) const { return true; }
29 struct hash<Key>
31 size_t operator()(Key const &) const {return 0;}
38 std::unordered_map<Key, int>::iterator it =
39 std::unordered_map<Key, int>().find(Key(0));
40 std::pair<std::unordered_map<Key, int>::iterator, bool> result =
41 std::unordered_map<Key, int>().insert(std::make_pair(Key(0), 0));