Home | History | Annotate | Download | only in stubs

Lines Matching refs:Key

62 template <typename Key>
65 int operator()(const Key& key) {
70 inline bool operator()(const Key& a, const Key& b) const {
79 int operator()(const char* key) {
89 template <typename Key, typename Data,
90 typename HashFcn = hash<Key>,
92 class hash_map : public std::map<Key, Data, HashFcn> {
97 template <typename Key,
98 typename HashFcn = hash<Key>,
100 class hash_set : public std::set<Key, HashFcn> {
107 template <typename Key>
108 struct hash : public HASH_NAMESPACE::hash_compare<Key> {
125 template <typename Key, typename Data,
126 typename HashFcn = hash<Key>,
129 Key, Data, HashFcn> {
134 template <typename Key,
135 typename HashFcn = hash<Key>,
138 Key, HashFcn> {
145 template <typename Key>
146 struct hash : public HASH_NAMESPACE::hash<Key> {
149 template <typename Key>
150 struct hash<const Key*> {
151 inline size_t operator()(const Key* key) const {
152 return reinterpret_cast<size_t>(key);
169 template <typename Key, typename Data,
170 typename HashFcn = hash<Key>,
171 typename EqualKey = std::equal_to<Key> >
173 Key, Data, HashFcn, EqualKey> {
178 template <typename Key,
179 typename HashFcn = hash<Key>,
180 typename EqualKey = std::equal_to<Key> >
182 Key, HashFcn, EqualKey> {
191 inline size_t operator()(const string& key) const {
192 return hash<const char*>()(key.c_str());
204 inline size_t operator()(const pair<First, Second>& key) const {
205 size_t first_hash = hash<First>()(key.first);
206 size_t second_hash = hash<Second>()(key.second);