From: Ian Romanick Date: Tue, 11 Oct 2011 22:25:00 +0000 (-0700) Subject: mesa: Add string_to_uint_map::clear method to clear the map X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=017346f4038671bd6725b857f6daeba821a8306b;p=mesa.git mesa: Add string_to_uint_map::clear method to clear the map Signed-off-by: Ian Romanick Tested-by: Tom Stellard --- diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h index 941d28a4ce9..47c37ae40ec 100644 --- a/src/mesa/program/hash_table.h +++ b/src/mesa/program/hash_table.h @@ -213,6 +213,14 @@ public: hash_table_dtor(this->ht); } + /** + * Remove all mappings from this map. + */ + void clear() + { + hash_table_clear(this->ht); + } + /** * Get the value associated with a particular key *