Update DataMap.h
This commit is contained in:
@@ -55,7 +55,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Removes objects with given key and returns true if one was removed, false otherwise
|
* Removes objects with given key and returns true if one was removed, false otherwise
|
||||||
*/
|
*/
|
||||||
bool Erase(std::string const & k) { Container.erase(k) != 0; }
|
bool Erase(std::string const & k) { return Container.erase(k) != 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unordered_map<std::string, std::unique_ptr<Base>> Container;
|
std::unordered_map<std::string, std::unique_ptr<Base>> Container;
|
||||||
|
|||||||
Reference in New Issue
Block a user