It's always nice to be able to clear a table without deallocating it
| 2979 | |
| 2980 | // It's always nice to be able to clear a table without deallocating it |
| 2981 | void clear() |
| 2982 | { |
| 2983 | if (!empty() || num_deleted != 0) |
| 2984 | { |
| 2985 | table.clear(); |
| 2986 | table = Table(HT_DEFAULT_STARTING_BUCKETS, table.get_allocator()); |
| 2987 | } |
| 2988 | settings.reset_thresholds(bucket_count()); |
| 2989 | num_deleted = 0; |
| 2990 | } |
| 2991 | |
| 2992 | // LOOKUP ROUTINES |
| 2993 | private: |
nothing calls this directly
no test coverage detected