mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 22:00:10 -05:00
cmDefinitions: Add an Erase method.
This commit is contained in:
@@ -61,6 +61,11 @@ void cmDefinitions::Set(const std::string& key, const char* value)
|
||||
}
|
||||
}
|
||||
|
||||
void cmDefinitions::Erase(const std::string& key)
|
||||
{
|
||||
this->Map.erase(key);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
std::set<std::string> cmDefinitions::LocalKeys() const
|
||||
{
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
/** Set (or unset if null) a value associated with a key. */
|
||||
void Set(const std::string& key, const char* value);
|
||||
|
||||
void Erase(const std::string& key);
|
||||
|
||||
/** Get the set of all local keys. */
|
||||
std::set<std::string> LocalKeys() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user