diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 17:00:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 17:00:39 +0200 |
commit | d38ae1f987b5ccdb316fb044c35486ec3be6c029 (patch) | |
tree | 1228ce82c343c0fdd07ee50924e5210b1d233b7d | |
parent | c8b89c45b3f527724a8700056a03885f5d3e4f0a (diff) |
Add clear() to string_table
-rw-r--r-- | butl/string-table | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/butl/string-table b/butl/string-table index e36ba08..b21c951 100644 --- a/butl/string-table +++ b/butl/string-table @@ -70,6 +70,9 @@ namespace butl bool empty () const {return vec_.empty ();} + void + clear () {vec_.clear (); map_.clear ();} + private: using key_type = butl::map_key<std::string>; using value_type = string_table_element<I, D>; |