[ox/std] Make HashMap::at return type consistent between const/non-const

This commit is contained in:
2021-04-01 02:41:12 -05:00
parent 291027e41e
commit 7bbd7bfdb5
6 changed files with 10 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ class HashMap {
/**
* K is assumed to be a null terminated string.
*/
T &at(K key);
Result<T*> at(K key);
/**
* K is assumed to be a null terminated string.
@@ -132,8 +132,8 @@ T &HashMap<K, T>::operator[](K k) {
}
template<typename K, typename T>
T &HashMap<K, T>::at(K k) {
return operator[](k);
Result<T*> HashMap<K, T>::at(K k) {
return &operator[](k);
}
template<typename K, typename T>