Lines Matching refs:Key
12 // template <class Key, class T, class Compare = less<Key>,
13 // class Allocator = allocator<pair<const Key, T>>>
23 struct Key {
24 template <typename T> Key(const T&) {}
25 bool operator< (const Key&) const { return false; }
30 typedef std::map<Key, int> MapT;
36 m_contains[Key(0)] = 42;
38 Iter it = m_empty.find(Key(0));
40 it = m_contains.find(Key(0));
45 IterBool result = map.insert(std::make_pair(Key(0), 42));
48 IterBool result2 = map.insert(std::make_pair(Key(0), 43));
50 assert(map[Key(0)] == 42);