mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
C++: Dictionary: Update template definition for better readability
This commit is contained in:
committed by
Nikias Bassen
parent
e6f3c6c621
commit
464382e6f8
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user