mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
mesa: Add string_to_uint_map::clear method to clear the map
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
295e07ef51
commit
017346f403
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue