C++: Dictionary: Update template definition for better readability

This commit is contained in:
guyingzhao
2025-04-06 12:25:02 +02:00
committed by Nikias Bassen
parent e6f3c6c621
commit 464382e6f8
+1 -3
View File
@@ -60,9 +60,7 @@ public :
void Remove(Node* node);
void Remove(const std::string& key);
std::string GetNodeKey(Node* node);
template <typename T>
T* Get(const std::string& key)
{
template <typename T> T* Get(const std::string& key) {
return (T*)(_map[key]);
}