get() goes const, add clear()

This commit is contained in:
SASANO Takayoshi
2020-03-08 07:55:08 +09:00
parent b7f5fdd8a2
commit abf17e19fc
2 changed files with 8 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ public:
static bool isValidKey(const std::string key);
void set(const std::string key, const std::string value);
std::string get(const std::string key);
const std::string get(const std::string key) const;
void clear(void);
private:
std::unordered_map<std::string, std::string> m_db;