Lines Matching refs:val
62 explicit LinkNode(const Key &key, const Val &val);
63 explicit LinkNode(const Key &key, Val &&val);
197 void push_front(const Key &key, const Val &val);
198 void push_front(const Key &key, Val &&val);
199 void push_back(const Key &key, const Val &val);
200 void push_back(const Key &key, Val &&val);
212 LinkNode<Key, Val> *AllocateNode(const Key &key, const Val &val);
213 LinkNode<Key, Val> *AllocateNode(const Key &key, Val &&val);
228 LinkNode<Key, Val>::LinkNode(const Key &key, const Val &val) : key_ {key}, val_ {val} {}
231 LinkNode<Key, Val>::LinkNode(const Key &key, Val &&val) : key_ {key}, val_ {std::move(val)} {}
896 static Val val = Val();
897 return val;
916 void HashList<Key, Val>::push_front(const Key& key, const Val& val)
919 LinkNode<Key, Val>* pnode = AllocateNode(key, val);
924 this->operator[](key) = val;
929 void HashList<Key, Val>::push_front(const Key& key, Val&& val)
932 LinkNode<Key, Val>* pnode = AllocateNode(key, std::move(val));
937 this->operator[](key) = val;
942 void HashList<Key, Val>::push_back(const Key& key, const Val& val)
945 LinkNode<Key, Val>* pnode = AllocateNode(key, val);
950 this->operator[](key) = val;
955 void HashList<Key, Val>::push_back(const Key& key, Val&& val)
958 LinkNode<Key, Val>* pnode = AllocateNode(key, std::move(val));
963 this->operator[](key) = val;
1109 auto HashList<Key, Val>::AllocateNode(const Key &key, const Val &val)
1120 pnode->val_ = val;
1125 auto HashList<Key, Val>::AllocateNode(const Key &key, Val &&val)
1136 pnode->val_ = std::move(val);