clear() and contains_key(...) functions