Add the ability to remove Tags

This commit is contained in:
Alexander Bock
2017-10-24 01:47:14 -07:00
parent 269dda8aff
commit 5a9ebe552b
4 changed files with 49 additions and 4 deletions
+7
View File
@@ -282,4 +282,11 @@ void PropertyOwner::addTag(std::string tag) {
_tags.push_back(std::move(tag));
}
void PropertyOwner::removeTag(const std::string& tag) {
_tags.erase(
std::remove(_tags.begin(), _tags.end(), tag),
_tags.end()
);
}
} // namespace openspace::properties